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:
parent
26bdcf7299
commit
e5e2ba14c3
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue