From 52fc556a6925275e34ee9cd31c6e7d725e58d9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 May 2012 13:45:01 +0200 Subject: specs: Particle#set_dst! should not add unaceptable destinations --- spec/evendoors_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/evendoors_spec.rb b/spec/evendoors_spec.rb index c3b1df1..703739b 100644 --- a/spec/evendoors_spec.rb +++ b/spec/evendoors_spec.rb @@ -226,18 +226,21 @@ describe EvenDoors do p.action.should eql 'action' # p.set_dst! '' + p.next_dst.should be_nil p.split_dst! p.room.should be_nil p.door.should be_nil p.action.should be_nil # p.set_dst! nil + p.next_dst.should be_nil p.split_dst! p.room.should be_nil p.door.should be_nil p.action.should be_nil # p.set_dst! ' ', ' ' + p.next_dst.should be_nil p.split_dst! p.room.should be_nil p.door.should be_nil -- cgit v1.1-2-g2b99