summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-09 10:11:09 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-09 10:11:09 +0200
commitdbf06ee875ae9529a499ef70f1b11147467d1c14 (patch)
tree867c4e00f2c7edd99a99f2bd47b90833c01613b5 /spec
parente8fde9995210e8d7ab64c19ec7d5fc9ca3a647eb (diff)
downloadedoors-ruby-dbf06ee875ae9529a499ef70f1b11147467d1c14.zip
edoors-ruby-dbf06ee875ae9529a499ef70f1b11147467d1c14.tar.gz
specs: complete Particle#set_dst! coverage
Diffstat (limited to 'spec')
-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 5718538..b6b7d30 100644
--- a/spec/evendoors_spec.rb
+++ b/spec/evendoors_spec.rb
@@ -195,6 +195,18 @@ describe EvenDoors do
p.door.should eql 'door'
p.action.should eql 'action'
#
+ p.set_dst! 'action', ''
+ p.split_dst!
+ p.room.should eql nil
+ p.door.should eql nil
+ p.action.should eql 'action'
+ #
+ p.set_dst! 'action'
+ p.split_dst!
+ p.room.should eql nil
+ p.door.should eql nil
+ p.action.should eql 'action'
+ #
p.clear_dsts!
p.add_dsts 'door?action,?action'
p.split_dst!