# Problem with functional tests and params

**URL:** <https://www.ruby-forum.com/t/problem-with-functional-tests-and-params/89026>\
**Category:** Rails\
**Created:** [March 16, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/problem-with-functional-tests-and-params/89026 "2007-03-16T15:12:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thogra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ea666f/32.png) [@Thogra](https://www.ruby-forum.com/u/Thogra)\
**Post date:** [March 16, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/problem-with-functional-tests-and-params/89026/1 "2007-03-16T15:12:34Z")

</div>

Hi all.

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

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

Thanks
