[rspec-users] session vs. controller.session

Scott Taylor scott at railsnewbie.com
Thu Jan 29 13:57:31 EST 2009



What exactly is the difference between using controller.session and  
session?  I though that session was just a proxy controller.session,  
but this irb/debug sessions show that it isn't:

http://gist.github.com/54673

When I call reset_session in the controller, I'm seeing the  
controller's session reset, but not the session() provided in the  
spec.  Is this intended behavior?

Scott


More information about the rspec-users mailing list