From 1a3bfab4bc38a240d99083ec6f00e81abf5a489a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 11 Jun 2012 22:41:19 +0200 Subject: specs: cover Particle#clear_merged! r=nil param --- spec/particle_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.1-2-g2b99