Commit 27cf34a

mo <mo.khan@gmail.com>
2018-12-25 00:44:43
add binary datatype
1 parent 5fdc32c
Changed files (2)
lib
spec
lib/scim/kit/v2/attribute_type.rb
@@ -11,6 +11,7 @@ module Scim
           decimal: 'decimal',
           integer: 'integer',
           datetime: 'dateTime',
+          binary: 'binary',
           reference: 'reference',
           complex: 'complex'
         }.freeze
spec/scim/kit/v2/attribute_type_spec.rb
@@ -8,6 +8,7 @@ RSpec.describe Scim::Kit::V2::AttributeType do
   specify { expect { described_class.new(name: 'birthdate', type: :datetime) }.not_to raise_error }
   specify { expect { described_class.new(name: '$ref', type: :reference) }.not_to raise_error }
   specify { expect { described_class.new(name: 'emails', type: :complex) }.not_to raise_error }
+  specify { expect { described_class.new(name: 'photo', type: :binary) }.not_to raise_error }
   specify { expect { described_class.new(name: 'invalid', type: :invalid) }.to raise_error(ArgumentError) }
 
   describe 'String Attribute' do