diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 11:48:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 11:48:50 +0200 |
commit | b1dac01c130cc104a7054b8f16b463dea5f93d03 (patch) | |
tree | 2ff709483866594b0f50b7a008c71e14dfdf952d /spec/evendoors_spec.rb | |
parent | 3da69540ac0dae8caeb4b6e8c48c96f2e8b56856 (diff) | |
download | edoors-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.rb | 12 |
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 |