summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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!