diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-04 12:44:06 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-04 12:44:06 -0800 |
commit | 726a2fc8d26da0ab95d50ee57679d73bc762ba4d (patch) | |
tree | b5a9d511dca0d8cd7e769d00720473fd1fbe56ae /actionpack/test | |
parent | 03dc66444e7c99701c0814f20ebcea64b1cc43ae (diff) | |
download | rails-726a2fc8d26da0ab95d50ee57679d73bc762ba4d.tar.gz rails-726a2fc8d26da0ab95d50ee57679d73bc762ba4d.tar.bz2 rails-726a2fc8d26da0ab95d50ee57679d73bc762ba4d.zip |
Give useful test:isolated failures
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/ts_isolated.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/ts_isolated.rb b/actionpack/test/ts_isolated.rb index 21d62f6aa7..5670d93613 100644 --- a/actionpack/test/ts_isolated.rb +++ b/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 |