diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 22:28:18 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 22:28:18 +0200 |
commit | 3a6b898f8e8d103b3858948e2bc1a187d97cbcc5 (patch) | |
tree | f8867d2211b87a6fdce45840afc8f1e94e1e84cc /spec/link_spec.rb | |
parent | 19f8f108f2644c6c23d9743786e2d80778ac5848 (diff) | |
download | edoors-ruby-3a6b898f8e8d103b3858948e2bc1a187d97cbcc5.zip edoors-ruby-3a6b898f8e8d103b3858948e2bc1a187d97cbcc5.tar.gz |
specs: add link->json->link
Diffstat (limited to 'spec/link_spec.rb')
-rw-r--r-- | spec/link_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/link_spec.rb b/spec/link_spec.rb index 29ecd92..05d7a5c 100644 --- a/spec/link_spec.rb +++ b/spec/link_spec.rb @@ -25,6 +25,16 @@ describe EvenDoors::Link do lnk.cond_value.should eql 'v0v1v2' end # + it "link->json->link" do + link = EvenDoors::Link.new 'input1', 'concat1?follow,output1', 'f0,f2', 'f0,f1,f2', 'v0v1v2' + lnk = EvenDoors::Link.json_create( JSON.load( JSON.generate(link) ) ) + link.src.should eql lnk.src + link.dsts.should eql lnk.dsts + link.fields.should eql lnk.fields + link.cond_fields.should eql lnk.cond_fields + link.cond_value.should eql lnk.cond_value + end + # end # # EOF |