summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-24 23:31:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-24 23:31:11 +0200
commitc6f87c0c99f4111b60e90f72fc8328a65a696e23 (patch)
treea7c2bf73ac4d01adb5684e411a7b5544c8673eb0
parent47d902611ca7617fbaa187c26846d378beae18a7 (diff)
downloadedoors-ruby-c6f87c0c99f4111b60e90f72fc8328a65a696e23.zip
edoors-ruby-c6f87c0c99f4111b60e90f72fc8328a65a696e23.tar.gz
complete Room coverage
-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