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 broken in 2.3.1

#2166

I have a 2.2.2 app which passes all tests. I change only the rails gem version to 2.3.1 in config/environment.rb and all tests still pass except for tests that use assert_template.


Code:
  get root_path
  assert_response :success
  p @response.rendered
  assert_template "homes/index"

Result:
{:template=>nil, :partials=>{}}
expecting <"homes/index"> but rendering with <"">

I'm rendering simple html erb templates here, nothing off the beaten path like strings or files.

Reported by Mike Perham · March 8th, 2009 @ 02:17 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. thedarkone
    thedarkone

    Hey Mike,

    I can't reproduce the issue, but I might be doing something wrong though. Could you please make a smallish 1-controller test app on github for me to clone?

    March 8th, 2009 @ 01:52 PM

  2. Mike Perham
    Mike Perham

    I spent some time trimming down my plugins and gems to make you a reproducible test case. This lead me to discover that it is in fact one of my gem plugins that is doing something funky and breaking this method. I'll take up this issue with the author. Please close as invalid.

    March 8th, 2009 @ 04:06 PM

  3. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to invalid

    Thanks for following up!

    March 8th, 2009 @ 04:44 PM

  4. Igor Kostyuchenok
    Igor Kostyuchenok

    What gem/plugin broke the method?

    December 16th, 2009 @ 02:49 PM

  5. Mike Perham
    Mike Perham

    fiveruns-dash-rails. FiveRuns has since gone out of business and the Dash service shutdown so it should not be an issue.

    December 16th, 2009 @ 05:30 PM

  6. Igor Kostyuchenok