Permalink
Browse files

MiniTest deprecated #assert_block in favor of calling #assert with a …

…block
  • Loading branch information...
jeremy committed May 17, 2012
1 parent 1b604c7 commit 165acf393fc16a89770829284ec3faa52844800f
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_case.rb
@@ -93,7 +93,7 @@ def assert_template(options = {}, message = nil)
rendered = @templates
msg = message || sprintf("expecting <%s> but rendering with <%s>",
options.inspect, rendered.keys)
- assert_block(msg) do
+ assert(msg) do
if options
rendered.any? { |t,num| t.match(options) }
else

0 comments on commit 165acf3

Please sign in to comment.