summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-09 10:11:38 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-09 10:11:38 +0200
commitde06e689343187e9f932c07325194edce1f19a88 (patch)
treec1d17f3293f63a284f967b29218624b9f00ec3ee /spec
parentdbf06ee875ae9529a499ef70f1b11147467d1c14 (diff)
downloadedoors-ruby-de06e689343187e9f932c07325194edce1f19a88.zip
edoors-ruby-de06e689343187e9f932c07325194edce1f19a88.tar.gz
specs: add #path to Fake
Diffstat (limited to 'spec')
-rw-r--r--spec/evendoors_spec.rb3
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