I'm trying to get started using Cucumber, but there are a couple of things I'm stuck on, and Google isn't helping (that said, I'm sure I'll stumble on the right phrase as soon as I send this).
1) Is it possible to wrap up the steps needed to login as a given user so that I can just say 'Given I am logged in as <foo>', rather than putting in all the steps needed in each scenario? 2) Alternatively, how do I set a cookie so that I don't need to visit /login, etc? 3) Is it possible to use Cucumber/Webrat to test making xml_http_requests, so that I can test that my actions do the right thing both for xml_http_requests and ordinary requests? E.G., Paragraphs#update returns the edited paragraph block for an xml_http_request (most of the time), but the entire page for a normal request. Shalon Wood -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
