diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 10:11:38 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 10:11:38 +0200 |
commit | de06e689343187e9f932c07325194edce1f19a88 (patch) | |
tree | c1d17f3293f63a284f967b29218624b9f00ec3ee | |
parent | dbf06ee875ae9529a499ef70f1b11147467d1c14 (diff) | |
download | edoors-ruby-de06e689343187e9f932c07325194edce1f19a88.zip edoors-ruby-de06e689343187e9f932c07325194edce1f19a88.tar.gz |
specs: add #path to Fake
-rw-r--r-- | spec/evendoors_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/evendoors_spec.rb b/spec/evendoors_spec.rb index b6b7d30..7fff64b 100644 --- a/spec/evendoors_spec.rb +++ b/spec/evendoors_spec.rb @@ -17,6 +17,9 @@ class Fake def name "myname" end + def path + (@parent.nil? ? name : @parent.path+'/'+name ) + end def process_p p @p = p end |