diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-08 16:56:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-08 16:56:11 +0200 |
commit | 26bca3ff4ad5a99047b7b84aff01323f97b98887 (patch) | |
tree | 278d5274772d481140bd76e11837ad521c943ad0 | |
parent | f67ac543b4ef8f10dcb8d1e70d1ee5269f08745c (diff) | |
download | edoors-ruby-26bca3ff4ad5a99047b7b84aff01323f97b98887.zip edoors-ruby-26bca3ff4ad5a99047b7b84aff01323f97b98887.tar.gz |
specs complete Twirl coverage
-rw-r--r-- | spec/evendoors_spec.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/evendoors_spec.rb b/spec/evendoors_spec.rb index d385e57..8a41548 100644 --- a/spec/evendoors_spec.rb +++ b/spec/evendoors_spec.rb @@ -55,6 +55,29 @@ describe EvenDoors do (p3===p1).should be_true end # + it "send_p send_sys_p twirl!" do + class Fake + attr_reader :p, :sp + def process_p p + @p = p + end + def process_sys_p p + @sp = p + end + end + f = Fake.new + p0 = EvenDoors::Twirl.require_p EvenDoors::Particle + p0.dst_routed! f + p1 = EvenDoors::Twirl.require_p EvenDoors::Particle + p1.dst_routed! f + EvenDoors::Twirl.send_p p0 + EvenDoors::Twirl.send_sys_p p1 + EvenDoors::Twirl.run = true + EvenDoors::Twirl.twirl! + f.p.should be p0 + f.sp.should be p1 + end + # end # describe EvenDoors::Particle do |