diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 13:28:01 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 13:28:01 +0200 |
commit | 0b120c62d266cc776b183119ab9a5dc602eabc51 (patch) | |
tree | d6ab57e40aa1952ef5edae2fc049c9a3c417b248 /spec | |
parent | c20819d502a5e8eef1c79e130de60eefb5a9bd00 (diff) | |
download | edoors-ruby-0b120c62d266cc776b183119ab9a5dc602eabc51.zip edoors-ruby-0b120c62d266cc776b183119ab9a5dc602eabc51.tar.gz |
specs: follow new Spot @name policy
Diffstat (limited to 'spec')
-rw-r--r-- | spec/evendoors_spec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/evendoors_spec.rb b/spec/evendoors_spec.rb index 7bbc5b5..6bde8f2 100644 --- a/spec/evendoors_spec.rb +++ b/spec/evendoors_spec.rb @@ -313,11 +313,14 @@ describe EvenDoors do describe EvenDoors::Link do # it "path construction should work" do - s0 = EvenDoors::Spot.new '//top', nil - s1 = EvenDoors::Spot.new '//room0/', s0 + s0 = EvenDoors::Spot.new 'top', nil + s1 = EvenDoors::Spot.new 'room0', s0 s2 = EvenDoors::Spot.new 'room1', s1 - s3 = EvenDoors::Spot.new 'door///', s2 + s3 = EvenDoors::Spot.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) + lambda { EvenDoors::Spot.new('door0/', nil) }.should raise_error(EvenDoors::Exception) end # end |