From e1c5d24369440857de1402d61c85d982b29d8019 Mon Sep 17 00:00:00 2001 From: Gaurish Sharma Date: Mon, 21 Apr 2014 18:33:19 +0530 Subject: [PATCH] Revert "update doc, assert_template also accepts false" This reverts commit 9b1c077c91f09b64b8105f31fdf5240cd12c2e16. my bad. `assert_template` only accepts a String, Symbol, Hash, Regexp or nil. `false`(layout: false) is provided as a Hash. --- actionpack/lib/action_controller/test_case.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index a79c139b4d..2962ce47f9 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/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 -- GitLab