[rspec-users] Rails sessions in plain text stories

Jarkko Laine jarkko at jlaine.net
Sun Nov 25 12:52:35 EST 2007


On 25.11.2007, at 19.41, Daniel Tenner wrote:
> ... What am I doing wrong?
>
> I've for the time being gotten around this problem (thanks to pd's
> suggestion on #rspec) by making the spec run through the sign up and
> email confirmation process, which does sign in the user into the
> session... but that seems a little over-verbose?)

Why through the whole process, wouldn't logging in be enough, since  
you create the user in the story code?

I currently do that, because I want to test the whole stack in my  
stories, including the login process.

//jarkko

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi




More information about the rspec-users mailing list