From b1dac01c130cc104a7054b8f16b463dea5f93d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 May 2012 11:48:50 +0200 Subject: specs: cover Particle #set_dst! #split_dst! with '' and nil --- spec/evendoors_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/evendoors_spec.rb b/spec/evendoors_spec.rb index 4fe107c..72a314a 100644 --- a/spec/evendoors_spec.rb +++ b/spec/evendoors_spec.rb @@ -225,6 +225,18 @@ describe EvenDoors do p.door.should eql nil p.action.should eql 'action' # + p.set_dst! '' + p.split_dst! + p.room.should be_nil + p.door.should be_nil + p.action.should be_nil + # + p.set_dst! nil + p.split_dst! + p.room.should be_nil + p.door.should be_nil + p.action.should be_nil + # end # it "routing: error!" do -- cgit v1.1-2-g2b99