Functional tests broken in 1.2.2?


#1

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


#2

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 :slight_smile:

Apparently the correct syntax is now:

@request.session[:user_id] = ‘1’
get :index

Jeff


#3

On 2/8/07, Jeff C.man 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 :slight_smile:

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


#4

Jeremy K. wrote:

On 2/8/07, Jeff C.man 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 :slight_smile:

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 :slight_smile:

Jeff