Re: [rspec-users] Rails sessions in plain text stories

2007-11-25 Thread David Chelimsky
On Nov 25, 2007 11:41 AM, Daniel Tenner <[EMAIL PROTECTED]> wrote: > Ok, maybe I'm being particularly thick, but I've been trying to find > the solution to this for a couple of hours now and I just can't seem > to be able to do it... > > I'm trying to write a step as such: > >Given("user $email

Re: [rspec-users] Rails sessions in plain text stories

2007-11-25 Thread Jarkko Laine
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... bu

[rspec-users] Rails sessions in plain text stories

2007-11-25 Thread Daniel Tenner
Ok, maybe I'm being particularly thick, but I've been trying to find the solution to this for a couple of hours now and I just can't seem to be able to do it... I'm trying to write a step as such: Given("user $email is logged in") do |email| user = User.find_by_email(email) sessi