Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-04-22 Thread Eric Kramer
Joe Van Dyk wrote: > Is it possible to have a scenario where you are testing the > interaction between two different session? Not sure if this is exactly what you need, but I found this technique to be very handy: http://erikonrails.snowedin.net/?p=159 It involves mixing in a method to Actio

Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-03-02 Thread Bart Zonneveld
On 28-feb-2009, at 21:04, Joe Van Dyk wrote: Is it possible to have a scenario where you are testing the interaction between two different session? If you mean something along these lines: User A uploads a picture, User B logs in to see the picture uploaded by User A that is possible. I us

Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-03-01 Thread Ben Mabey
Joe Van Dyk wrote: Is it possible to have a scenario where you are testing the interaction between two different session? i.e. Given User A clicks this link Then User B should see this It used to be possible, but don't know if it still is. Joe ___ r

Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-03-01 Thread Zach Dennis
On Sun, Mar 1, 2009 at 8:04 PM, Joe Van Dyk wrote: > So you're saying no?  :D It is possible, you simply have to logout from UserA and log in as UserB. Also, although it's not exposed with webrat IIRC it is possible to have selenium run to separate browsers at the same time. You could theoretical

Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-03-01 Thread Joe Van Dyk
So you're saying no? :D On Sat, Feb 28, 2009 at 5:17 PM, BJ Clark wrote: > Joe, > I would test this in 2 steps. > I'd first test that whatever state change (or whatever happens when you User > A clicks the link) takes place. > Then in another test, I'd check that, given a certain state (or again

Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-02-28 Thread BJ Clark
Joe,I would test this in 2 steps. I'd first test that whatever state change (or whatever happens when you User A clicks the link) takes place. Then in another test, I'd check that, given a certain state (or again, whatever is supposed to happen), then User B sees whatever. HTH, BJ Clark On Sat,

[rspec-users] testing multiple sessions in cucumber/webrat

2009-02-28 Thread Joe Van Dyk
Is it possible to have a scenario where you are testing the interaction between two different session? i.e. Given User A clicks this link Then User B should see this It used to be possible, but don't know if it still is. Joe ___ rspec-users mailing li