Commit 14e516f

mo <mo.khan@gmail.com>
2018-01-13 22:40:03
return the scim hash by default.
1 parent f38560f
Changed files (2)
lib
scim
shady
spec
lib/scim/shady/user.rb
@@ -14,7 +14,7 @@ module Scim
         def build
           user = new
           yield user
-          user
+          user.to_h
         end
       end
     end
spec/scim/user_spec.rb
@@ -16,7 +16,7 @@ RSpec.describe Scim::Shady::User do
         builder.updated_at = updated_at
         builder.location = user_url
         builder.version = user_version
-      end.to_h
+      end
 
       expect(result['schemas']).to match_array([Scim::Shady::Schemas::USER])
       expect(result['id']).to eql(id)