Permalink
Browse files

Fix another set of typos

I need more coffee this morning !
  • Loading branch information...
1 parent 5fd9f39 commit cb98dba92d4766e2e753a4765bfc5b7526891d42 @jhchabran jhchabran committed Jul 21, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 spec/vintner/representer_spec.rb
@@ -120,16 +120,17 @@ class Dummy
end
it "should export json" do
- hash = {:meta=>{:tile => "test"}, :position => {:x => 4, :y => 5}}
+ hash = {:meta=>{:title => "test"}, :position => {:x => 4, :y => 5}}
+
+ model = Struct.new(:formatted_title, :position_x, :position_y).new("test", 4,5)
- model = Struct.new(:formatted_title, :position).new("test", :x => 4, :y => 5)
Dummy.export(model).should ==(hash.to_json)
end
it "should import json" do
- hash = {:meta=>{:tile => "test"}, :position => {:x => 4, :y => 5}}
+ hash = {:meta=>{:title => "test"}, :position => {:x => 4, :y => 5}}
- model = Struct.new(:formatted_title, :position).new
+ 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)

0 comments on commit cb98dba

Please sign in to comment.