summaryrefslogtreecommitdiffstats
path: root/spec/room_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/room_spec.rb')
-rw-r--r--spec/room_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/room_spec.rb b/spec/room_spec.rb
index 642b45a..c240ac6 100644
--- a/spec/room_spec.rb
+++ b/spec/room_spec.rb
@@ -147,6 +147,17 @@ describe Iotas::Room do
p.dst.should be p.src
end
#
+ it "routing ~failure: no door name -> src" do
+ room0 = Iotas::Room.new 'room0', @spin
+ door0 = Iotas::Door.new 'door0', room0
+ p = @spin.require_p Iotas::Particle
+ p.src = door0
+ p.set_dst! 'get'
+ room0.send_p p
+ p.action.should eql 'get'
+ p.dst.should be door0
+ end
+ #
it "routing success: unconditional link" do
room0 = Iotas::Room.new 'room0', @spin
door0 = Iotas::Door.new 'door0', room0