adding that assert_template with :layout will raise ArgumentError for unknown layout type
Merge pull request #17995 from jethroo/fix/assert_template_with_unsupported_layout_type

assert template should raise ArgumentError for unsupported layout types