Skip to content
Browse files

Make complex representation test pass

  • Loading branch information...
1 parent cb98dba commit b99f8221fc24161678ba3d1fb1da06810540d3b1 @jhchabran jhchabran committed Jul 21, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/vintner/representer_spec.rb
View
5 spec/vintner/representer_spec.rb
@@ -104,8 +104,8 @@ class Dummy
end
set do |model, value|
- model.position_x = value[:x]
- model.position_y = value[:y]
+ model.position_x = value['x']
+ model.position_y = value['y']
end
end
@@ -133,6 +133,7 @@ class Dummy
model = Struct.new(:formatted_title, :position_x, :position_y).new
Dummy.import(model, hash.to_json).formatted_title.should ==("test")
+
Dummy.import(model, hash.to_json).position_x.should ==(4)
Dummy.import(model, hash.to_json).position_y.should ==(5)
end

0 comments on commit b99f822

Please sign in to comment.
Something went wrong with that request. Please try again.