summaryrefslogtreecommitdiffstats
path: root/spec/evendoors_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-09 11:48:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-09 11:48:50 +0200
commitb1dac01c130cc104a7054b8f16b463dea5f93d03 (patch)
tree2ff709483866594b0f50b7a008c71e14dfdf952d /spec/evendoors_spec.rb
parent3da69540ac0dae8caeb4b6e8c48c96f2e8b56856 (diff)
downloadedoors-ruby-b1dac01c130cc104a7054b8f16b463dea5f93d03.zip
edoors-ruby-b1dac01c130cc104a7054b8f16b463dea5f93d03.tar.gz
specs: cover Particle #set_dst! #split_dst! with '' and nil
Diffstat (limited to 'spec/evendoors_spec.rb')
-rw-r--r--spec/evendoors_spec.rb12
1 files changed, 12 insertions, 0 deletions
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