diff options
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 |