diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-11 22:41:19 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-11 22:41:19 +0200 |
commit | 1a3bfab4bc38a240d99083ec6f00e81abf5a489a (patch) | |
tree | 94e329b028c25f6e6987d37333b37750ec0756c1 | |
parent | 634135e41fb743fd70566a3f4b1c8cc33bbc8112 (diff) | |
download | edoors-ruby-1a3bfab4bc38a240d99083ec6f00e81abf5a489a.zip edoors-ruby-1a3bfab4bc38a240d99083ec6f00e81abf5a489a.tar.gz |
specs: cover Particle#clear_merged! r=nil param
-rw-r--r-- | spec/particle_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/particle_spec.rb b/spec/particle_spec.rb index b738343..cf51299 100644 --- a/spec/particle_spec.rb +++ b/spec/particle_spec.rb @@ -38,6 +38,7 @@ describe Edoors::Particle do end # it "particle merge" do + spin = Edoors::Spin.new 'dom0' p = Edoors::Particle.new q = Edoors::Particle.new o = Edoors::Particle.new @@ -57,6 +58,14 @@ describe Edoors::Particle do p.merged(1).should be o p.clear_merged! p.merged(0).should be_nil + p.merge! q + p.merge! o + p.merged(0).should be q + p.merged(1).should be o + p.clear_merged! spin + p.merged(0).should be_nil + spin.require_p(Edoors::Particle).should be o + spin.require_p(Edoors::Particle).should be q end # it "routing: add_dsts, next_dst and dst_routed!" do |