diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-18 11:46:07 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-18 11:46:07 +0200 |
commit | cb0ffa6cfd04dfae81bce57fbbe528f719d3efe5 (patch) | |
tree | 50ef5ce866751a81624eaa47dbe726d761702cb3 /spec/spot_spec.rb | |
parent | 3e01a17ec9ed22867b409ffedab20e160de90ff7 (diff) | |
download | edoors-ruby-cb0ffa6cfd04dfae81bce57fbbe528f719d3efe5.zip edoors-ruby-cb0ffa6cfd04dfae81bce57fbbe528f719d3efe5.tar.gz |
Spot->Iota
Diffstat (limited to 'spec/spot_spec.rb')
-rw-r--r-- | spec/spot_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/spot_spec.rb b/spec/spot_spec.rb index eb64f33..1ed2b03 100644 --- a/spec/spot_spec.rb +++ b/spec/spot_spec.rb @@ -4,11 +4,11 @@ require 'spec_helper' # -describe Iotas::Spot do +describe Iotas::Iota do # it "path construction" do - class S<Iotas::Spot - def add_spot s + class S<Iotas::Iota + def add_iota s end end s0 = S.new 'top', nil @@ -16,9 +16,9 @@ describe Iotas::Spot do s2 = S.new 'room1', s1 s3 = S.new 'door', s2 s3.path.should eql 'top/room0/room1/door' - lambda { Iotas::Spot.new('do/or0', nil) }.should raise_error(Iotas::Exception) - lambda { Iotas::Spot.new('/door0', nil) }.should raise_error(Iotas::Exception) - lambda { Iotas::Spot.new('door0/', nil) }.should raise_error(Iotas::Exception) + lambda { Iotas::Iota.new('do/or0', nil) }.should raise_error(Iotas::Exception) + lambda { Iotas::Iota.new('/door0', nil) }.should raise_error(Iotas::Exception) + lambda { Iotas::Iota.new('door0/', nil) }.should raise_error(Iotas::Exception) end # end |