diff options
| author | mo <mo.khan@gmail.com> | 2019-01-07 21:11:12 -0700 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-01-07 21:11:12 -0700 |
| commit | 0b7b891dbd117a4456861b23e6b6c8f90c673498 (patch) | |
| tree | 2d7b1a050c1bfe45ffc7608e0ef0ca7fe8f8c83a /spec/scim | |
| parent | 0d82fb5bfa31e96a55d8b374d52620815553d2cf (diff) | |
underscore the attribute type namev0.2.2
Diffstat (limited to 'spec/scim')
| -rw-r--r-- | spec/scim/kit/v2/attribute_type_spec.rb | 4 | ||||
| -rw-r--r-- | spec/scim/kit/v2/schema_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/scim/kit/v2/attribute_type_spec.rb b/spec/scim/kit/v2/attribute_type_spec.rb index dba970d..db4c060 100644 --- a/spec/scim/kit/v2/attribute_type_spec.rb +++ b/spec/scim/kit/v2/attribute_type_spec.rb @@ -15,9 +15,9 @@ RSpec.describe Scim::Kit::V2::AttributeType do describe 'defaults' do subject { described_class.new(name: 'displayName') } - specify { expect(subject.name).to eql('displayName') } + specify { expect(subject.name).to eql('display_name') } specify { expect(subject.type).to be(:string) } - specify { expect(subject.to_h[:name]).to eql('displayName') } + specify { expect(subject.to_h[:name]).to eql('display_name') } specify { expect(subject.to_h[:type]).to eql('string') } specify { expect(subject.to_h[:multiValued]).to be(false) } specify { expect(subject.to_h[:description]).to eql('') } diff --git a/spec/scim/kit/v2/schema_spec.rb b/spec/scim/kit/v2/schema_spec.rb index f319028..5e821db 100644 --- a/spec/scim/kit/v2/schema_spec.rb +++ b/spec/scim/kit/v2/schema_spec.rb @@ -24,7 +24,7 @@ RSpec.describe Scim::Kit::V2::Schema do subject.add_attribute(name: 'displayName') end - specify { expect(result[:attributes][0][:name]).to eql('displayName') } + specify { expect(result[:attributes][0][:name]).to eql('display_name') } specify { expect(result[:attributes][0][:type]).to eql('string') } specify { expect(result[:attributes][0][:multiValued]).to be(false) } specify { expect(result[:attributes][0][:description]).to eql('') } |
