summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-09 13:45:01 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-09 13:45:01 +0200
commit52fc556a6925275e34ee9cd31c6e7d725e58d9a8 (patch)
treec66075eb0aa6b42954689693a656b680808dc546 /spec
parentf2c9b2cf41d223e29c08ba68dc6ce1e0313b0058 (diff)
downloadedoors-ruby-52fc556a6925275e34ee9cd31c6e7d725e58d9a8.zip
edoors-ruby-52fc556a6925275e34ee9cd31c6e7d725e58d9a8.tar.gz
specs: Particle#set_dst! should not add unaceptable destinations
Diffstat (limited to 'spec')
-rw-r--r--spec/evendoors_spec.rb3
1 files changed, 3 insertions, 0 deletions
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