This project is archived and is in readonly mode.
assert_template broken in 2.3.1
Reported by Mike Perham | March 8th, 2009 @ 02:17 AM | in 2.x
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.
Comments and changes to this ticket
-
thedarkone March 8th, 2009 @ 01:52 PM
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?
-
Mike Perham March 8th, 2009 @ 04:06 PM
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.
-
CancelProfileIsBroken March 8th, 2009 @ 04:44 PM
- State changed from new to invalid
Thanks for following up!
-
Mike Perham December 16th, 2009 @ 05:30 PM
fiveruns-dash-rails. FiveRuns has since gone out of business and the Dash service shutdown so it should not be an issue.
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>