summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-11 11:28:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-12 09:38:00 +0200
commitc063c281b79c02847c99805576622f37d6124d16 (patch)
tree8dfbab9f7fd2726faa1752c9161728c7ba87fbda /spec/spec_helper.rb
parentb80e888e11f9c976053ec5aa4a7f8e7c6d3227b3 (diff)
downloadedoors-ruby-c063c281b79c02847c99805576622f37d6124d16.zip
edoors-ruby-c063c281b79c02847c99805576622f37d6124d16.tar.gz
specs: Fake inherits from Spot
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 43374f0..852e17e 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -11,15 +11,8 @@ end
#
require 'evendoors'
#
-class Fake
- attr_accessor :parent
+class Fake < EvenDoors::Spot
attr_reader :p, :sp, :start, :stop
- def name
- "myname"
- end
- def path
- (@parent.nil? ? name : @parent.path+'/'+name )
- end
def process_p p
@p = p
end