Permalink
Browse files

Revert "update doc, assert_template also accepts false"

This reverts commit 9b1c077.

my bad.
`assert_template` only accepts a String, Symbol, Hash, Regexp or nil.

`false`(layout: false) is provided as a Hash.
  • Loading branch information...
1 parent 28bd442 commit e1c5d24369440857de1402d61c85d982b29d8019 @gaurish gaurish committed Apr 21, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_case.rb
@@ -170,7 +170,7 @@ def assert_template(options = {}, message = nil)
"Expected no partials to be rendered"
end
else
- raise ArgumentError, "assert_template only accepts a String, Symbol, Hash, Regexp, nil or false"
+ raise ArgumentError, "assert_template only accepts a String, Symbol, Hash, Regexp, or nil"
end
end
end

0 comments on commit e1c5d24

Please sign in to comment.