diff options
author | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2015-01-12 10:13:58 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2015-01-12 10:13:58 +0100 |
commit | 4f065f63125907b3a4f72fbab8722c58ccab41c1 (patch) | |
tree | 3add5b782e0c86ffcf61d1b4e4dae769b7aa89c4 /spec/link_spec.rb | |
parent | 6b69e8e7806ade8fc36505f9ca358edd1572acef (diff) | |
download | edoors-ruby-master.zip edoors-ruby-master.tar.gz |
Diffstat (limited to 'spec/link_spec.rb')
-rw-r--r-- | spec/link_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/link_spec.rb b/spec/link_spec.rb index 49f086a..cff424b 100644 --- a/spec/link_spec.rb +++ b/spec/link_spec.rb @@ -14,20 +14,20 @@ describe Edoors::Link do p.set_data Edoors::LNK_KEYS, ['f0','f2'] p.set_data Edoors::LNK_VALUE, {'f0'=>'v0','f1'=>'v1','f2'=>'v2'} lnk = Edoors::Link.from_particle p - lnk.src.should eql 'input1' - lnk.dsts.should eql ['concat1?follow','output1'] - lnk.keys.should eql ['f0','f2'] - lnk.value.should == {'f0'=>'v0','f1'=>'v1','f2'=>'v2'} + expect(lnk.src).to eql 'input1' + expect(lnk.dsts).to eql ['concat1?follow','output1'] + expect(lnk.keys).to eql ['f0','f2'] + expect(lnk.value).to be == {'f0'=>'v0','f1'=>'v1','f2'=>'v2'} end # it "link->json->link" do link = Edoors::Link.new 'input1', ['concat1?follow','output1'], ['f0','f2'], {'f0'=>'v0','f1'=>'v1','f2'=>'v2'} lnk = Edoors::Link.json_create( JSON.load( JSON.generate(link) ) ) - link.src.should eql lnk.src - link.dsts.should eql lnk.dsts - link.keys.should eql lnk.keys - link.value.should eql lnk.value - JSON.generate(link).should eql JSON.generate(lnk) + expect(link.src).to eql lnk.src + expect(link.dsts).to eql lnk.dsts + expect(link.keys).to eql lnk.keys + expect(link.value).to eql lnk.value + expect(JSON.generate(link)).to eql JSON.generate(lnk) end # end |