method
assert_template
v1.2.6 -
Show latest stable
- Class:
ActionController::Assertions::ResponseAssertions
assert_template(expected = nil, message=nil)public
Asserts that the request was rendered with the appropriate template file.
1Note
As of v2.3.4 you can use Symbols
This commit fixes using a Symbol with assert_template
http://github.com/rails/rails/commit/f383a4aa333cd8a99003eb1bdbb27b6fdea1056c
assert_template :new # works in 2.3.4