diff options
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 |