From c6f87c0c99f4111b60e90f72fc8328a65a696e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 24 May 2012 23:31:11 +0200 Subject: complete Room coverage --- spec/room_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.1-2-g2b99