2008/12/20 Jon Hancock <[email protected]>: > 1 - Instead of "When I go to /login" I would like the option of > writing "When I go to login" or When I go to :login" whereby if I > don't pass in something that looks like a path, it will use the merb > url() method to to get the path by name. Does someone have a hacked > version of common_webrat.rb
I would rather not do it, because this brings you back to square one: URLs in your applications *are* API, and you need to test against it, this is the whole point of cucumber and webrat over controller specs that test implementation details. Implementation details may change and users have no idea about it. > 2 - Not sure the appropriate way to load sample data for cucumber > tests. Are these called fixtures in cucumber? What are others doing > here for datamapper test data? You can use steps like Given scenario is "scenario name" where scenario name triggers a Proc that sets up test data using DM sweatshop, YAML, csv, SQL dump or whatever it is. -- MK --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
