Browse files

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

  • Loading branch information...
1 parent 26bdcf7 commit e5e2ba14c31f3eb97e5fba31a50da8d26ea3a77e @kennyj kennyj committed May 20, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/test/ts_isolated.rb
  2. +1 −1 activesupport/test/ts_isolated.rb
View
2 actionpack/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
View
2 activesupport/test/ts_isolated.rb
@@ -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 e5e2ba1

Please sign in to comment.