This project is archived and is in readonly mode.

#2011 ✓resolved
Mark Dodwell

assert_template :symbol passes whatever

Reported by Mark Dodwell | February 18th, 2009 @ 09:36 PM | in 2.x

When you use a symbol for assert_template, it passes regardless of what symbol you pass.

For example, if the actual template rendered is 'foo/new.html.erb', then the following will happen:

  • assert_template 'new' -> pass
  • assert_template :new -> pass
  • assert_template 'newbar' -> fail
  • assert_template :newbar -> pass

Is this intended behaviour, or a bug?


~ Mark

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by