summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-18 11:46:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-18 11:46:07 +0200
commitcb0ffa6cfd04dfae81bce57fbbe528f719d3efe5 (patch)
tree50ef5ce866751a81624eaa47dbe726d761702cb3 /spec
parent3e01a17ec9ed22867b409ffedab20e160de90ff7 (diff)
downloadedoors-ruby-cb0ffa6cfd04dfae81bce57fbbe528f719d3efe5.zip
edoors-ruby-cb0ffa6cfd04dfae81bce57fbbe528f719d3efe5.tar.gz
Spot->Iota
Diffstat (limited to 'spec')
-rw-r--r--spec/room_spec.rb4
-rw-r--r--spec/spec_helper.rb4
-rw-r--r--spec/spot_spec.rb12
3 files changed, 10 insertions, 10 deletions
diff --git a/spec/room_spec.rb b/spec/room_spec.rb
index 06811a5..1d394ac 100644
--- a/spec/room_spec.rb
+++ b/spec/room_spec.rb
@@ -14,11 +14,11 @@ describe Iotas::Room do
@spin.clear!
end
#
- it "add_spot and add_link correctly" do
+ it "add_iota and add_link correctly" do
r0 = Iotas::Room.new 'room0', @spin
d0 = Iotas::Door.new 'door0', r0
lambda { Iotas::Door.new('door0', r0) }.should raise_error(Iotas::Exception)
- lambda { r0.add_spot Iotas::Door.new('door1', r0) }.should raise_error(Iotas::Exception)
+ lambda { r0.add_iota Iotas::Door.new('door1', r0) }.should raise_error(Iotas::Exception)
r0.add_link Iotas::Link.new 'door0', 'somewhere'
lambda { r0.add_link(Iotas::Link.new('nowhere', 'somewhere')) }.should raise_error(Iotas::Exception)
end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e3e0aa1..5a549c5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -11,7 +11,7 @@ end
#
require 'iotas'
#
-class Fake < Iotas::Spot
+class Fake < Iotas::Iota
attr_reader :p, :sp, :start, :stop
def process_p p
@p = p
@@ -25,7 +25,7 @@ class Fake < Iotas::Spot
def send_sys_p p
@sp = p
end
- def add_spot p
+ def add_iota p
end
def start!
@start=true
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