diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-11 11:28:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-12 09:38:00 +0200 |
commit | c063c281b79c02847c99805576622f37d6124d16 (patch) | |
tree | 8dfbab9f7fd2726faa1752c9161728c7ba87fbda /spec | |
parent | b80e888e11f9c976053ec5aa4a7f8e7c6d3227b3 (diff) | |
download | edoors-ruby-c063c281b79c02847c99805576622f37d6124d16.zip edoors-ruby-c063c281b79c02847c99805576622f37d6124d16.tar.gz |
specs: Fake inherits from Spot
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 9 | ||||
-rw-r--r-- | spec/spin_spec.rb | 2 |
2 files changed, 2 insertions, 9 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 diff --git a/spec/spin_spec.rb b/spec/spin_spec.rb index 707ded3..3797bc5 100644 --- a/spec/spin_spec.rb +++ b/spec/spin_spec.rb @@ -59,7 +59,7 @@ describe EvenDoors::Spin do # it "send_p send_sys_p spin!" do spin = EvenDoors::Spin.new 'dom0' - f = Fake.new + f = Fake.new 'fake', spin p0 = spin.require_p EvenDoors::Particle p0.dst_routed! f p1 = spin.require_p EvenDoors::Particle |