diff options
| author | mo khan <mo@mokhan.ca> | 2022-12-09 10:03:42 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2022-12-09 10:03:42 -0700 |
| commit | 12818ddff591d966247ac2b6f6e27cf61808837c (patch) | |
| tree | 4a354d9a8e1c28057af88efbc7401e64d337cd57 | |
| parent | e72e7ea35979e756bcec1c877d8a3a989351a09e (diff) | |
test: define api for extension conflicts
| -rw-r--r-- | spec/scim/kit/v2/resource_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/scim/kit/v2/resource_spec.rb b/spec/scim/kit/v2/resource_spec.rb index a580509..0eddfc0 100644 --- a/spec/scim/kit/v2/resource_spec.rb +++ b/spec/scim/kit/v2/resource_spec.rb @@ -189,9 +189,11 @@ RSpec.describe Scim::Kit::V2::Resource do before do extension.add_attribute(name: :country) subject.country = 'usa' + subject.write_attribute("#{extension_id}#province", 'canada') end specify { expect(subject.country).to eql('usa') } + specify { expect(subject.read_attribute_for("#{extension_id}#province")).to eql('canada') } specify { expect(subject.as_json[:country]).to eql('canada') } specify { expect(subject.as_json[extension_id][:country]).to eql('usa') } end |
