Skip to content
Browse files

Give useful test:isolated failures

  • Loading branch information...
1 parent 03dc664 commit 726a2fc8d26da0ab95d50ee57679d73bc762ba4d @jeremy jeremy committed Nov 4, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/ts_isolated.rb
View
4 actionpack/test/ts_isolated.rb
@@ -10,8 +10,8 @@ class TestIsolated < Test::Unit::TestCase
Dir["#{File.dirname(__FILE__)}/{abstract,controller,dispatch,template}/**/*_test.rb"].each do |file|
define_method("test #{file}") do
command = "#{ruby} -Ilib:test #{file}"
- silence_stderr { `#{command}` }
- assert_equal 0, $?.to_i, command
+ result = silence_stderr { `#{command}` }
+ assert_block("#{command}\n#{result}") { $?.to_i.zero? }
end
end
end

0 comments on commit 726a2fc

Please sign in to comment.
Something went wrong with that request. Please try again.