1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't use assert_block method. It will be deprecated.

This commit is contained in:
kennyj 2012-05-20 00:14:40 +09:00
parent 26bdcf7299
commit e5e2ba14c3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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