# Functional tests broken in 1.2.2?

**URL:** <https://www.ruby-forum.com/t/functional-tests-broken-in-1-2-2/84966>\
**Category:** Rails\
**Created:** [February 8, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/functional-tests-broken-in-1-2-2/84966 "2007-02-08T22:00:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingoweiss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/77aa72/32.png) [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Post date:** [February 8, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/functional-tests-broken-in-1-2-2/84966/1 "2007-02-08T22:00:05Z")

</div>

Hi,

I upgraded to 1.2.2 and many of my functional tests broke. It seems like  
passing stuff into the session using the following syntax doesn’t work:

get :index, {}, {:user\_id =\> ‘1’}

In the debugger I could clearly see that the :user\_id didn’t make it  
into the session. Did the syntax for doing this change, or is this a  
bug?

Ingo

---

<div class="post-metadata">

**Author:** ![ingoweiss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/77aa72/32.png) [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Post date:** [February 8, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/functional-tests-broken-in-1-2-2/84966/2 "2007-02-08T22:03:50Z")

</div>

Ingo W. wrote:

> Hi,
> 
> I upgraded to 1.2.2 and many of my functional tests broke. It seems like  
> passing stuff into the session using the following syntax doesn’t work:
> 
> get :index, {}, {:user\_id =\> ‘1’}
> 
> In the debugger I could clearly see that the :user\_id didn’t make it  
> into the session. Did the syntax for doing this change, or is this a  
> bug?
> 
> Ingo

I just posted about this a few minutes ago 🙂

Apparently the correct syntax is now:

@request.session[:user\_id] = ‘1’  
get :index

Jeff

---

<div class="post-metadata">

**Author:** ![ingoweiss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/77aa72/32.png) [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Post date:** [February 8, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/functional-tests-broken-in-1-2-2/84966/3 "2007-02-08T22:13:14Z")

</div>

On 2/8/07, Jeff C.man [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > into the session. Did the syntax for doing this change, or is this a  
> > bug?
> > 
> > Ingo
> 
> I just posted about this a few minutes ago 🙂
> 
> Apparently the correct syntax is now:
> 
> @request.session[:user\_id] = ‘1’  
> get :index

What Ingo has should work. This is a bug and will be fixed in 1.2.3!

Sorry for letting the regression slip in, all.

jeremy

---

<div class="post-metadata">

**Author:** ![ingoweiss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/77aa72/32.png) [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Post date:** [February 8, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/functional-tests-broken-in-1-2-2/84966/4 "2007-02-08T23:23:10Z")

</div>

Jeremy K. wrote:

> On 2/8/07, Jeff C.man [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > into the session. Did the syntax for doing this change, or is this a  
> > > bug?
> > > 
> > > Ingo
> > 
> > I just posted about this a few minutes ago 🙂
> > 
> > Apparently the correct syntax is now:
> > 
> > @request.session[:user\_id] = ‘1’  
> > get :index
> 
> What Ingo has should work. This is a bug and will be fixed in 1.2.3!
> 
> Sorry for letting the regression slip in, all.
> 
> jeremy

Thanks, Jeremy! I was wondering what had happened 🙂

Jeff
