Forum: Ruby on Rails @request problem in functional tests

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Claudio P. (Guest)
on 2007-04-08 06:24
(Received via mailing list)
I'm using edge rails, ruby 1.8.6 on osx.
if I write a method like:

@request.session[:user] = 3

more than in one method the script just quits, I must use it once in
the entire test file :\
it can be considerered as a bug? with earlier revisions of edge rails
it was working..

Claudio P. (Guest)
on 2007-04-08 07:19
(Received via mailing list)
On Apr 8, 4:23 am, "Claudio P. " <removed_email_address@domain.invalid> 
> thanks.

after long testing I found out why: the new file format for the views;
if we have edit.erb there are no issues, if we start using
edit.html.erb tests quits.
there's also another issue with this format, explained here:

I've seen changeset 6505, I'm gonna to try it.
Claudio P. (Guest)
on 2007-04-08 07:25
(Received via mailing list)
Changeset 6505 it's unrelated.

Anyway I can confirm, tests broke/quits when using
file.format.extension for views, I've just renamed again my views to
the old format (file.erb) and tests goes from start to finish normally.
This topic is locked and can not be replied to.