diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 17:34:39 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 17:34:39 +0200 |
commit | bed8e682e80a810c66f309faf7865872aadc85cc (patch) | |
tree | 57509b1a08d9438c12b88c36aef9a90abca72311 /spec/room_spec.rb | |
parent | d916c197fd06eb5f818e2bd75d5d1312c4758975 (diff) | |
download | edoors-ruby-bed8e682e80a810c66f309faf7865872aadc85cc.zip edoors-ruby-bed8e682e80a810c66f309faf7865872aadc85cc.tar.gz |
Spin register itself in its class, aka singleton
Diffstat (limited to 'spec/room_spec.rb')
-rw-r--r-- | spec/room_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/room_spec.rb b/spec/room_spec.rb index b794900..a683035 100644 --- a/spec/room_spec.rb +++ b/spec/room_spec.rb @@ -30,6 +30,7 @@ describe EvenDoors::Room do end # it "parent, spin and resolve 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 @@ -238,6 +239,7 @@ describe EvenDoors::Room do # 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 |