diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-01 13:44:24 +0100 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-02 17:50:11 -0800 |
commit | 13004c37e658dac960ba3a75cdf90206fc58118e (patch) | |
tree | f3196cad21be202edaf868e57fabbfb72d13ea26 | |
parent | 14370e1aab6ddfb5b86cf50bd7e5abcebae0684c (diff) | |
download | rails-13004c37e658dac960ba3a75cdf90206fc58118e.tar.gz rails-13004c37e658dac960ba3a75cdf90206fc58118e.tar.bz2 rails-13004c37e658dac960ba3a75cdf90206fc58118e.zip |
Give useful test:isolated failures
-rw-r--r-- | activesupport/test/ts_isolated.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/ts_isolated.rb b/activesupport/test/ts_isolated.rb index 9378a13766..cbab61a523 100644 --- a/activesupport/test/ts_isolated.rb +++ b/activesupport/test/ts_isolated.rb @@ -8,8 +8,8 @@ class TestIsolated < Test::Unit::TestCase Dir["#{File.dirname(__FILE__)}/**/*_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 |