From 5e21e89bf467e212cd783752bb50c00143a52cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 10 May 2012 22:32:46 +0200 Subject: specs: Door link->json->link --- spec/door_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/door_spec.rb b/spec/door_spec.rb index 2899b95..46c43d3 100644 --- a/spec/door_spec.rb +++ b/spec/door_spec.rb @@ -69,6 +69,12 @@ describe EvenDoors::Door do p1.should be p0 end # + it "link->json->link" do + door = EvenDoors::Door.new 'hell' + hell = EvenDoors::Door.json_create( JSON.load( JSON.generate(door) ) ) + door.name.should eql hell.name + end + # end # # EOF -- cgit v1.1-2-g2b99