summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-11 11:26:09 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-12 09:38:00 +0200
commit831fbca253ad01a4c9f38f18fed2afba4dc8226f (patch)
tree96169a63cbd3a52190b41c4b4ff8cb73887f24f9
parent75d321ccb7af64f99e72dfff3d8f69ca9e80c959 (diff)
downloadedoors-ruby-831fbca253ad01a4c9f38f18fed2afba4dc8226f.zip
edoors-ruby-831fbca253ad01a4c9f38f18fed2afba4dc8226f.tar.gz
specs: adapt to new Spot behavior
-rw-r--r--spec/spot_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/spot_spec.rb b/spec/spot_spec.rb
index b33acb2..94d415d 100644
--- a/spec/spot_spec.rb
+++ b/spec/spot_spec.rb
@@ -6,15 +6,15 @@ require 'spec_helper'
#
describe EvenDoors::Spot do
#
- before(:each) do
- EvenDoors::Spin.clear!
- end
- #
it "path construction" do
- s0 = EvenDoors::Spot.new 'top', nil
- s1 = EvenDoors::Spot.new 'room0', s0
- s2 = EvenDoors::Spot.new 'room1', s1
- s3 = EvenDoors::Spot.new 'door', s2
+ class S<EvenDoors::Spot
+ def add_spot s
+ end
+ end
+ s0 = S.new 'top', nil
+ s1 = S.new 'room0', s0
+ s2 = S.new 'room1', s1
+ s3 = S.new 'door', s2
s3.path.should eql 'top/room0/room1/door'
lambda { EvenDoors::Spot.new('do/or0', nil) }.should raise_error(EvenDoors::Exception)
lambda { EvenDoors::Spot.new('/door0', nil) }.should raise_error(EvenDoors::Exception)