Hi all

I know how to mock security and environmental things with rspec so I
don't get redirected, but cucumber's got me foxed.

The scenario:

We have a domain, e.g. wibble.thingy.com. This means that there's a
database entity associated with wibble that we go and get whenever
someone hits the website. This is so we can have lots of skinned
trackable sites talking to the same back-end app.

If the app doesn't recognise the domain name (or it isn't supplied) it
redirects to a nice page saying, sorry but I don't know what you want
me to do.

I want to get to the app from inside my test env so I can run a
cucumber script against it. In rspec I could just mock all this out
easy peasy but cucumber doesn't seem to understand mocking, or if it
does the documentation is extremely well hidden in a darkened basement
past a big sign saying "beware of the lion".

In a similar vein I want to start from another form after having
mocked logging in so I can test that part independently.

It's taken all day to get this far, because the default webrat steps
script didn't have the path stuff in and I had to get the script from
Ryan Bates' site and then mess about persuading webrat to do its
stuff. Plus, I had to create the paths file from scratch too. As usual
Ryan makes it look easy but it isn't.

Any ideas, guys?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to