Permalink
Browse files

paths in cuke support

  • Loading branch information...
1 parent bb0d146 commit 934fe91c57e390a830c584ba7fca66ca27db508f @dchelimsky dchelimsky committed Jan 31, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 features/support/env.rb
View
@@ -58,8 +58,8 @@ def ruby(args)
$LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
$LOAD_PATH.unshift(File.expand_path('../../../../rspec-expectations/lib', __FILE__))
$LOAD_PATH.unshift(File.expand_path('../../../../rspec-mocks/lib', __FILE__))
-require 'rspec'
-require 'rspec/matchers'
+require 'rspec/core'
+require 'rspec/expectations'
Rspec::Core::ExampleGroup.__send__(:include, Rspec::Matchers)
CONTENT
end
@@ -68,6 +68,7 @@ def ruby(args)
@stdout = super(cmd, stderr_file.path)
end
@stderr = IO.read(stderr_file.path)
+ p @stderr unless @stderr == ""
@exit_code = $?.to_i
end

0 comments on commit 934fe91

Please sign in to comment.