summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-14 19:34:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-14 19:34:07 +0200
commitf98b37998ada09e2d87c5815a0ca5725f62b6952 (patch)
tree06fdc3dfce76c1ce40cf454607adfe1bc3d44ad7
parent5ea9ccae42984be38494a6e0bd1450cdb7811619 (diff)
downloadedoors-ruby-f98b37998ada09e2d87c5815a0ca5725f62b6952.zip
edoors-ruby-f98b37998ada09e2d87c5815a0ca5725f62b6952.tar.gz
specs: add Spin.process_sys_p specs
-rw-r--r--spec/spin_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/spin_spec.rb b/spec/spin_spec.rb
index 1c87e49..a58fd5c 100644
--- a/spec/spin_spec.rb
+++ b/spec/spin_spec.rb
@@ -73,6 +73,16 @@ describe EvenDoors::Spin do
spin.stop!
end
#
+ it "process_sys" do
+ spin = EvenDoors::Spin.new 'dom0'
+ p0 = spin.require_p EvenDoors::Particle
+ p0.set_dst! 'unknown'
+ spin.send_sys_p p0
+ spin.spin!
+ p1 = spin.require_p EvenDoors::Particle
+ p0.should be p0
+ end
+ #
it "option debug" do
spin = EvenDoors::Spin.new 'dom0'
spin.debug_routing.should be false