Michael Klishin <[email protected]> writes: > On 25.01.2009, at 21:49, Shalon Wood wrote: > >> Hmm. The thing is, that's fairly long: >> >> Given I am not authenticated >> When I go to http://playground.playground.pele.cx/login >> And I fill in "username" with "<mail>" >> And I fill in "password" with "<password>" >> And I press "Log In" >> >> All before I start the stuff that's actually relevant to the >> scenario in >> question, which is why I was hoping to be able to say 'Given I am >> logged >> in as <foo>'. > > > Given %r{^I am authenticated as "(.*)"$}i do |credentials| > email, password = credentials.split("/") > Given %{I was registered with "#{email}/#{password}"} > Then %{I can log in as "#{email}/#{password}"} > end
*snip* Yeah, I figured out how to do this yesterday after talking to someone on #cucumber (and he added a page on the cucumber wiki on doing it, so it should be easier for others to find in the future). Now I'm just blocked by click_button not expanding relative urls into absolute urls (which breaks subdomain routing, as there's no host to get domains from). 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 -~----------~----~----~----~------~----~------~--~---
