# Functional tests breaking

**URL:** <https://www.ruby-forum.com/t/functional-tests-breaking/124224>\
**Category:** Rails\
**Created:** [December 26, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/functional-tests-breaking/124224 "2007-12-26T18:56:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leveille](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@leveille](https://www.ruby-forum.com/u/leveille)\
**Post date:** [December 26, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/functional-tests-breaking/124224/1 "2007-12-26T18:56:05Z")

</div>

So I have a weird thing that’s come up and wanted to see if anyone else  
has experienced it.

I checked my project code out on my laptop and my unit tests are working  
fine. However, none of my functional tests that require login work. I’m  
using the acts\_as\_authenticated plugin. I’ve dug thru all the generated  
classes AAA generates, added debug output, etc, to no avail.

In the AAA test helper it sets up the session[:user\_id] as the id from  
the login\_as :quentin test user. I put some debug around this in the  
appropriate AAA test helper method and can see that the user=\>1 attr is  
set. But as soon as I try to puts the session value in my controller  
I’m testing ala,

puts “session user id: #{session[:user]}”

it says nil or just blank. So it’s like somewhere in the request coming  
into the controller, it’s losing the current request and therefore  
session? Dunno, but it would seem this is the case.

I’m using Rails 1.2.6, the latest AAA plugin, and not much else. All  
these tests work on my other machine, but of course, I’m out of town and  
it’s off, so I can’t see what the diff is. But I’m running OS X Leopard  
on both, with same version of ruby, rails.

Has anyone seen this issue? tia,

- jason
