Forum: Ruby on Rails Problem with functional tests and params

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.
0ce57b30c6f84b74443ddf4f682e6d6e?d=identicon&s=25 Thogra (Guest)
on 2007-03-16 15:12
(Received via mailing list)
Hi all.

Problem: Using parameters in get() seems to swallow the session

In my functional test I have something like:
get :show, :testa => 'aa', :testb => 'bb'
In my view I have:
<%= session[:testb]%>

This should give a true for this test: assert_tag :content => "bb"

But it doesn't unless I remove the params when calling get(), so this
tests true:
get :show, {}, :testb => 'bb'
assert_tag :content => "bb"

What am I doing wrong ?
I'm using Rails version  1.1.6

This topic is locked and can not be replied to.