summaryrefslogtreecommitdiffstats
path: root/spec/particle_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-25 15:09:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-25 15:09:16 +0200
commitd769f91d90a54fc230c453f43a1064ca0c529196 (patch)
tree04dfae461278ed159f9bac56d56fadb68ba45af0 /spec/particle_spec.rb
parentfc456f7b034e59641abb3a950be25d8a5c66b597 (diff)
downloadedoors-ruby-d769f91d90a54fc230c453f43a1064ca0c529196.zip
edoors-ruby-d769f91d90a54fc230c453f43a1064ca0c529196.tar.gz
Specs: replace p.src = with p.init! calls
Diffstat (limited to 'spec/particle_spec.rb')
-rw-r--r--spec/particle_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/particle_spec.rb b/spec/particle_spec.rb
index 2a6d073..4952000 100644
--- a/spec/particle_spec.rb
+++ b/spec/particle_spec.rb
@@ -142,7 +142,7 @@ describe Iotas::Particle do
it "routing: error!" do
p = Iotas::Particle.new
d = Iotas::Door.new 'door', nil
- p.src = d
+ p.init! d
p.add_dsts 'door?action,?action'
p.next_dst.should eql 'door?action'
p.error! 'err_msg'
@@ -193,7 +193,7 @@ describe Iotas::Particle do
p0['k0'] = 'v0'
p0['k1'] = 'v1'
p0['k2'] = 'v2'
- p0.src = s3
+ p0.init! s3
p0.set_link_fields 'k0,k2'
p0.add_dsts 'room0/room1/room2/doorX?myaction,door?action,?action'
p0.split_dst!
@@ -201,7 +201,7 @@ describe Iotas::Particle do
p1['k3'] = 'v6'
p1['k4'] = 'v7'
p1['k5'] = 'v8'
- p1.src = s3
+ p1.init! s3
p1.dst_routed! s4
p1.set_link_fields 'k5,k4,k3'
p1.add_dsts 'room0/room1/door?action,output?action'