Commit 9e0e667

mokha <mokha@cisco.com>
2019-01-14 19:58:33
spec for multi-valued string attributes
1 parent 390ead4
Changed files (1)
spec
scim
spec/scim/kit/v2/resource_spec.rb
@@ -365,5 +365,16 @@ RSpec.describe Scim::Kit::V2::Resource do
 
       specify { expect(subject.age).to be(34) }
     end
+
+    context "with a multi-valued simple string attribute" do
+      before do
+        schema.add_attribute(name: 'colours', type: :string) do |x|
+          x.multi_valued = true
+        end
+        subject.assign_attributes(colours: ['red', 'green', :blue])
+      end
+
+      specify { expect(subject.colours).to match_array(['red', 'green', 'blue']) }
+    end
   end
 end