summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/door_spec.rb6
1 files changed, 6 insertions, 0 deletions
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