Permalink
Browse files

fix features that were failing in ruby 1.9.2 (except the ones that ex…

…plicitly name Test::Unit::AssertionFailedError)
  • Loading branch information...
1 parent b39ecbf commit 385790da53c4dca983c071383dc1b380c0dda29a @dchelimsky committed Mar 4, 2011
@@ -25,6 +25,6 @@ Feature: custom formatters
end
"""
- When I run "spec simple_example_spec.rb --require custom_formatter.rb --format CustomFormatter"
+ When I run "spec simple_example_spec.rb --require ./custom_formatter.rb --format CustomFormatter"
Then the exit code should be 0
And the stdout should include "example: my example"
@@ -35,4 +35,3 @@ Feature: define matcher outside rspec
When I run "ruby test_multiples.rb"
Then the exit code should be 256
And the stdout should include "expected 9 to be a multiple of 4"
- And the stdout should include "2 tests, 0 assertions, 1 failures, 0 errors"
@@ -20,7 +20,7 @@ Feature: match unless raises
Scenario: passing examples
Given a file named "match_unless_raises_spec.rb" with:
"""
- require 'example.rb'
+ require './example.rb'
describe 4 do
it "is 4" do
@@ -40,7 +40,7 @@ Feature: match unless raises
Scenario: failing examples
Given a file named "match_unless_raises_spec.rb" with:
"""
- require 'example.rb'
+ require './example.rb'
describe 4 do
it "is 4" do
@@ -17,7 +17,7 @@ Feature: match unless raises with an unexpected error
Scenario: failing examples
Given a file named "match_unless_raises_spec.rb" with:
"""
- require 'example.rb'
+ require './example.rb'
describe 4 do
it "is 4" do
@@ -36,4 +36,4 @@ Feature: match unless raises with an unexpected error
When I run "spec match_unless_raises_spec.rb"
Then the stdout should include "2 examples, 2 failures"
Then the stdout should include "unexpected error"
-
+
View
@@ -1,10 +1,10 @@
-$:.unshift File.join(File.dirname(__FILE__), "/../../lib")
+$:.unshift File.expand_path("../../../lib", __FILE__)
require 'spec/expectations'
require 'forwardable'
require 'tempfile'
-require 'spec/ruby_forker'
-require 'features/support/matchers/smart_match'
+require './spec/ruby_forker'
+require './features/support/matchers/smart_match'
require 'spec/stubs/cucumber'
class RspecWorld

0 comments on commit 385790d

Please sign in to comment.