Commit 390ead4

mokha <mokha@cisco.com>
2019-01-14 19:11:47
ensure integer attributes can be assigned
1 parent 1df491d
Changed files (1)
spec
scim
spec/scim/kit/v2/resource_spec.rb
@@ -356,5 +356,14 @@ RSpec.describe Scim::Kit::V2::Resource do
 
       specify { expect(subject.user_name).to eql(user_name) }
     end
+
+    context "with a simple integer attribute" do
+      before do
+        schema.add_attribute(name: 'age', type: :integer)
+        subject.assign_attributes(age: 34)
+      end
+
+      specify { expect(subject.age).to be(34) }
+    end
   end
 end