diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 22:32:46 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 22:32:46 +0200 |
commit | 5e21e89bf467e212cd783752bb50c00143a52cb1 (patch) | |
tree | 0dcfab5364200dd957408e57b694a867efe863f1 | |
parent | c56306657ba69e2bd896df4fc92162d038358b27 (diff) | |
download | edoors-ruby-5e21e89bf467e212cd783752bb50c00143a52cb1.zip edoors-ruby-5e21e89bf467e212cd783752bb50c00143a52cb1.tar.gz |
specs: Door link->json->link
-rw-r--r-- | spec/door_spec.rb | 6 |
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 |