[rspec-users] help on skipping a before_filter for a story
dchelimsky at gmail.com
Mon Sep 8 23:51:52 EDT 2008
On Mon, Sep 8, 2008 at 10:49 PM, Eric Harris-Braun <gbs at panix.com> wrote:
> Thanks David for the very detailed response.
> I see what you mean about why this should be hard to do. In fact
> perhaps what I should do instead is simply specify the user-login part
> in my story instead of skipping it. I didn't at first because its a
> pain, i.e. sending the sessions/create post and then saving the sessions
> cookie and then sending it along with the post I really want to test.
> Are there any best-practices or examples of how folks accomplish this
You should not need to save any cookies. You should be able to simply
log in and then go to the secure page. Have you tried just doing that?
> Earth is a beta site.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users