diff --git a/spec/rtomayko_spec.rb b/spec/rtomayko_spec.rb index 32719a5..4872837 100644 --- a/spec/rtomayko_spec.rb +++ b/spec/rtomayko_spec.rb @@ -3,7 +3,6 @@ describe "RTomayko" do it "doesn't change the behavior of regular specs" do output = run_spec < :rtomayko do it { true.should be_false } it { true.should be_false } end EOF + output.should =~ /2 examples, 1 failure, 1 skipped/ end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d645909..134b5cd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,6 +9,8 @@ def run_spec(text) config.mock_with '' end RSPEC_CONFIGURE + rtomayko_file = File.dirname(__FILE__) + "/../lib/rtomayko" + file.puts "require '#{rtomayko_file}'" file.puts text end `rspec #{path} 2>&1`