From c063c281b79c02847c99805576622f37d6124d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 11 May 2012 11:28:11 +0200 Subject: specs: Fake inherits from Spot --- spec/spec_helper.rb | 9 +-------- 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 -- cgit v1.1-2-g2b99