summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-10 23:27:09 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-10 23:27:09 +0200
commit5fbda1780698b2470133672aea247cfd35ba3e85 (patch)
tree18583e4e339038f31a1ae45bf511dbec34b067f3 /spec
parent71fa3a07057f7ba1d2b27c0b3e98d71354b4a049 (diff)
downloadedoors-ruby-5fbda1780698b2470133672aea247cfd35ba3e85.zip
edoors-ruby-5fbda1780698b2470133672aea247cfd35ba3e85.tar.gz
Spin: to_json stores iota and links into inner_room
This allows top iotas to be Doors and not only Rooms
Diffstat (limited to 'spec')
-rw-r--r--spec/spin_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spin_spec.rb b/spec/spin_spec.rb
index 93ddf27..9d73b90 100644
--- a/spec/spin_spec.rb
+++ b/spec/spin_spec.rb
@@ -117,6 +117,9 @@ describe Edoors::Spin do
spin = Edoors::Spin.new 'dom0'
p0 = spin.require_p Edoors::Particle
p0.add_dst Edoors::SYS_ACT_HIBERNATE
+ Edoors::Room.new 'input', spin
+ Edoors::Room.new 'output', spin
+ spin.add_link Edoors::Link.new('input', 'output', nil, nil, nil)
spin.send_sys_p p0
spin.spin!
dom0 = Edoors::Spin.resume! spin.hibernate_path