Permalink
Browse files

Merge pull request #6396 from kennyj/dont_use_assert_block

Don't use assert_block method. It will be removed.
  • Loading branch information...
2 parents 6df96c9 + e5e2ba1 commit 777d53901427ea183170c932d27eb43ce9fa5800 @rafaelfranca rafaelfranca committed May 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/test/ts_isolated.rb
  2. +1 −1 activesupport/test/ts_isolated.rb
@@ -9,7 +9,7 @@ class TestIsolated < ActiveSupport::TestCase
define_method("test #{file}") do
command = "#{ruby} -Ilib:test #{file}"
result = silence_stderr { `#{command}` }
- assert_block("#{command}\n#{result}") { $?.to_i.zero? }
+ assert $?.to_i.zero?, "#{command}\n#{result}"
end
end
end
@@ -10,7 +10,7 @@ class TestIsolated < ActiveSupport::TestCase
define_method("test #{file}") do
command = "#{ruby} -Ilib:test #{file}"
result = silence_stderr { `#{command}` }
- assert_block("#{command}\n#{result}") { $?.to_i.zero? }
+ assert $?.to_i.zero?, "#{command}\n#{result}"
end
end
end

0 comments on commit 777d539

Please sign in to comment.