diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-22 23:37:05 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-22 23:37:05 +0200 |
commit | 0604ff5819137a9acd19bc5f0c393d47ea9a19a7 (patch) | |
tree | e8cf9438b00ffdeadfeb382155c85641e750d94e /spec/spin_spec.rb | |
parent | c98777107213c48f7a04a1d3f3d8b6e4afba8f9d (diff) | |
download | edoors-ruby-0604ff5819137a9acd19bc5f0c393d47ea9a19a7.zip edoors-ruby-0604ff5819137a9acd19bc5f0c393d47ea9a19a7.tar.gz |
complete SPin specs
Diffstat (limited to 'spec/spin_spec.rb')
-rw-r--r-- | spec/spin_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/spin_spec.rb b/spec/spin_spec.rb index 9d73b90..9ceebf8 100644 --- a/spec/spin_spec.rb +++ b/spec/spin_spec.rb @@ -92,6 +92,16 @@ describe Edoors::Spin do spin.debug_errors.should be true end # + it "search world" do + spin = Edoors::Spin.new 'dom0', :debug_routing=>true + r0 = Edoors::Room.new 'r0', spin + r1 = Edoors::Room.new 'r1', r0 + r2 = Edoors::Room.new 'r2', r1 + spin.search_world(r0.path).should be r0 + spin.search_world(r1.path).should be r1 + spin.search_world(r2.path).should be r2 + end + # it "spin->json->spin" do spin = Edoors::Spin.new 'dom0', :debug_routing=>true r0 = Edoors::Room.new 'r0', spin |