Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

assert_template :symbol always passes, even when it should fail

#4501
  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.

Reported by David Chelimsky · April 29th, 2010 @ 07:19 PM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. David Chelimsky
    David Chelimsky
    • Assigned user set to Yehuda Katz (wycats)

    April 29th, 2010 @ 07:19 PM

  2. José Valim
    José Valim
    • Milestone cleared.
    • State changed from new to open
    • Assigned user changed from Yehuda Katz (wycats) to José Valim

    May 2nd, 2010 @ 11:01 PM

  3. Repository
  4. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM