This project is archived and is in readonly mode.

#4501 ✓resolved
David Chelimsky

assert_template :symbol always passes, even when it should fail

Reported by David Chelimsky | April 29th, 2010 @ 07:19 PM | in 3.0.2

  get :new
  assert_template 'new'  # passes correctly
  assert_template :new   # passes correctly, but totally by accident
  assert_template :other # passes erroneously

This commit fixes the problem:

http://github.com/dchelimsky/rails/commit/a3aa4fc8d16eb2091365b4206...

This commit restructures the tests a bit:

http://github.com/dchelimsky/rails/commit/ce839d2bfb3f0d1463c0fa339...

I kept them separate in case you prefer to leave the test structure as/is, in which case just grab the first commit.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages