summaryrefslogtreecommitdiffstats
path: root/spec/room_spec.rb
diff options
context:
space:
mode:
authorJérémy <jeremy@asynk.ch>2012-05-10 21:25:43 +0200
committerJérémy <jeremy@asynk.ch>2012-05-10 21:25:43 +0200
commit62a07e34c3af77fbe6735dc315bc0d28a3f891bc (patch)
tree2c8198f282c21f7d42cfa07543ede6652d9b721b /spec/room_spec.rb
parent9b704b544d33ab3db45a3519bd25aa27c25d89ad (diff)
downloadedoors-ruby-62a07e34c3af77fbe6735dc315bc0d28a3f891bc.zip
edoors-ruby-62a07e34c3af77fbe6735dc315bc0d28a3f891bc.tar.gz
specs: follow new Spin#clear! policy
Diffstat (limited to 'spec/room_spec.rb')
-rw-r--r--spec/room_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/room_spec.rb b/spec/room_spec.rb
index badea97..fede784 100644
--- a/spec/room_spec.rb
+++ b/spec/room_spec.rb
@@ -6,6 +6,10 @@ require 'spec_helper'
#
describe EvenDoors::Room do
#
+ before(:each) do
+ EvenDoors::Spin.clear!
+ end
+ #
it "add_spot and add_link correctly" do
EvenDoors::Spin.debug_routing = false
r0 = EvenDoors::Room.new 'room0', nil
@@ -31,7 +35,6 @@ describe EvenDoors::Room do
end
#
it "parent, spin and search_down should be ok" do
- EvenDoors::Spin.spin = nil
s = EvenDoors::Spin.new 'dom0'
r0 = EvenDoors::Room.new 'r0', s
r1 = EvenDoors::Room.new 'r1', r0
@@ -243,8 +246,6 @@ describe EvenDoors::Room do
end
#
it "SYS_ACT_ADD_LINK" do
- EvenDoors::Spin.clear!
- EvenDoors::Spin.spin = nil
spin = EvenDoors::Spin.new 'dom0' # needed to be able to route to door
room0 = EvenDoors::Room.new 'room0', spin
door0 = EvenDoors::Door.new 'door0', room0