summaryrefslogtreecommitdiffstats
path: root/spec/door_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-10 22:52:29 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-10 22:52:29 +0200
commit2fd2f49b684ba22dea0ed9313b3ce257b4b82488 (patch)
treed22162cca392314fac607b222ac00e7a9d86e35d /spec/door_spec.rb
parent6867e3fb5377a7a80ad93cca2918e19e4a5fe52b (diff)
downloadedoors-ruby-2fd2f49b684ba22dea0ed9313b3ce257b4b82488.zip
edoors-ruby-2fd2f49b684ba22dea0ed9313b3ce257b4b82488.tar.gz
specs: typos, add JSON output compare
Diffstat (limited to 'spec/door_spec.rb')
-rw-r--r--spec/door_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/door_spec.rb b/spec/door_spec.rb
index 46c43d3..5b0fb6f 100644
--- a/spec/door_spec.rb
+++ b/spec/door_spec.rb
@@ -69,10 +69,11 @@ describe EvenDoors::Door do
p1.should be p0
end
#
- it "link->json->link" do
+ it "door->json->door" do
door = EvenDoors::Door.new 'hell'
hell = EvenDoors::Door.json_create( JSON.load( JSON.generate(door) ) )
door.name.should eql hell.name
+ JSON.generate(door).should eql JSON.generate(hell)
end
#
end