Hi -- I'm assuming that there are excellent reasons for not enabling stubs &
mocks in cucumber, but I find myself in a bit of a pickle without them.
Basically, I want to write a feature that has the home page displaying if
there is a logged in user (identified by a call to current_user, which in
turn checks session[:user_id]), and that displays an unauthorised access
page if there isn't.
I guess normally, I'd have webrat walk through my app, including logging in?
Unfortunately, the login doesn't happen in this application, though. It
happens in another that shares state with this one, so I can't do this.
Could someone advise how I can set up my scenario so that there is a valid
user either in the session, or stubbed from the current_user?
Would this be something to do with fixtures?
If so, could someone point me at some docs that show me how to use them with
cucumber?
Thanks for any & all help,
   Doug.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to