Commit 7fa8db6
Changed files (2)
lib
scim
kit
v2
spec
scim
kit
lib/scim/kit/v2/resource.rb
@@ -16,7 +16,7 @@ module Scim
validates_presence_of :id
validate :schema_validations
- def initialize(schemas:, location:)
+ def initialize(schemas:, location: nil)
@meta = Meta.new(schemas[0].name, location)
@meta.disable_timestamps
@schemas = schemas
spec/scim/kit/v2/resource_spec.rb
@@ -160,7 +160,7 @@ RSpec.describe Scim::Kit::V2::Resource do
end
context 'when submitting new record' do
- subject { described_class.new(schemas: schemas, location: nil) }
+ subject { described_class.new(schemas: schemas) }
specify { expect(subject.as_json.key?(:meta)).to be(false) }
specify { expect(subject.as_json.key?(:id)).to be(false) }