diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-02 21:55:54 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-02 21:55:54 +0200 |
commit | 2a461e013ed0dfe7601292d71b080d83b8edcbf0 (patch) | |
tree | aab8d4c3956d9229348fa75eb8ad1a073b37467e /spec/door_spec.rb | |
parent | ef0351bc7598e698897d755b6cfe397d682296c4 (diff) | |
download | edoors-ruby-2a461e013ed0dfe7601292d71b080d83b8edcbf0.zip edoors-ruby-2a461e013ed0dfe7601292d71b080d83b8edcbf0.tar.gz |
specs follow Particle#set_dst! -> Particle#add_dst
Diffstat (limited to 'spec/door_spec.rb')
-rw-r--r-- | spec/door_spec.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/door_spec.rb b/spec/door_spec.rb index 3d93518..b836786 100644 --- a/spec/door_spec.rb +++ b/spec/door_spec.rb @@ -55,27 +55,31 @@ describe Iotas::Door do d0 = Door0.new 'door0', f p0 = d0.require_p Iotas::Particle # - p0.set_dst! 'SEND' + p0.add_dst 'SEND' p0.split_dst! d0.process_p p0 f.p.should eql p0 + p0.clear_dsts! # - p0.set_dst! 'SEND_SYS' + p0.add_dst 'SEND_SYS' p0.split_dst! d0.process_p p0 f.sp.should eql p0 + p0.clear_dsts! # - p0.set_dst! 'RELEASE' + p0.add_dst 'RELEASE' p0.split_dst! d0.process_p p0 p1 = d0.require_p Iotas::Particle p1.should be p0 + p0.clear_dsts! # - p0.set_dst! 'LOST' + p0.add_dst 'LOST' p0.split_dst! d0.process_p p0 p1 = d0.require_p Iotas::Particle p1.should be p0 + p0.clear_dsts! # d0.process_sys_p p0 p1 = @spin.require_p Iotas::Particle |