Commit 7fa8db6

mokha <mokha@cisco.com>
2019-01-12 00:20:45
make location optional
1 parent d3c3421
Changed files (2)
lib
scim
spec
scim
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) }