diff options
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 |