diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 09:31:26 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 09:31:26 +0200 |
commit | 6886fa096d832b0682eafe631922694653384994 (patch) | |
tree | b224ac22372483404305eecbe99528ae2b1b94cf /spec/spec_helper.rb | |
parent | 274411458b30ba08a9e0adca0a0f5820e9a8648f (diff) | |
download | edoors-ruby-6886fa096d832b0682eafe631922694653384994.zip edoors-ruby-6886fa096d832b0682eafe631922694653384994.tar.gz |
split specs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..43374f0 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,45 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +begin + require 'simplecov' + SimpleCov.start do + add_filter 'spec' + end +rescue LoadError +end +# +require 'evendoors' +# +class Fake + attr_accessor :parent + 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 + def process_sys_p p + @sp = p + end + def send_p p + @p = p + end + def send_sys_p p + @sp = p + end + def add_spot p + end + def start! + @start=true + end + def stop! + @stop=true + end +end +# +# EOF |