Commit 27cf34a
Changed files (2)
lib
scim
kit
spec
scim
kit
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