summaryrefslogtreecommitdiffstats
path: root/spec/spin_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-10 23:20:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-10 23:20:50 +0200
commit2fdbbb0f986d047c69e44b6768be08f3e0bb2d79 (patch)
tree510e29bd9a4c5707f51df332812a6a729d8a0c35 /spec/spin_spec.rb
parentbee11419fe984734f414a78e87b4e214256b13c5 (diff)
downloadedoors-ruby-2fdbbb0f986d047c69e44b6768be08f3e0bb2d79.zip
edoors-ruby-2fdbbb0f986d047c69e44b6768be08f3e0bb2d79.tar.gz
specs: complete Spin coverage
Diffstat (limited to 'spec/spin_spec.rb')
-rw-r--r--spec/spin_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spin_spec.rb b/spec/spin_spec.rb
index b67fb6e..7e171a5 100644
--- a/spec/spin_spec.rb
+++ b/spec/spin_spec.rb
@@ -75,6 +75,14 @@ describe EvenDoors::Spin do
#
it "spin->json->spin" do
spin = EvenDoors::Spin.new 'dom0', :debug_routing=>true
+ r0 = EvenDoors::Room.new 'r0', spin
+ r1 = EvenDoors::Room.new 'r1', r0
+ r2 = EvenDoors::Room.new 'r2', r1
+ r3 = EvenDoors::Room.new 'r3', r1
+ r4 = EvenDoors::Room.new 'r4', r3
+ d0 = EvenDoors::Door.new 'd0', r1
+ d1 = EvenDoors::Door.new 'd1', r1
+ d2 = EvenDoors::Door.new 'd2', r2
p0 = EvenDoors::Spin.require_p EvenDoors::Particle
p1 = EvenDoors::Spin.require_p EvenDoors::Particle
p2 = EvenDoors::Spin.require_p EvenDoors::Particle