Forum: Ruby on Rails @request problem in functional tests

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
25e782eb7e799e78d781b0026fc6a4d8?d=identicon&s=25 Claudio Poli (masterkain82)
on 2007-04-08 04:24
(Received via mailing list)
hi,
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..

thanks.
25e782eb7e799e78d781b0026fc6a4d8?d=identicon&s=25 Claudio Poli (masterkain82)
on 2007-04-08 05:19
(Received via mailing list)
On Apr 8, 4:23 am, "Claudio Poli " <masterk...@gmail.com> wrote:
>
> 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:
http://dev.rubyonrails.org/ticket/8014

I've seen changeset 6505, I'm gonna to try it.
25e782eb7e799e78d781b0026fc6a4d8?d=identicon&s=25 Claudio Poli (masterkain82)
on 2007-04-08 05: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.