On 12 Oct 2010, at 05:47, ToddH wrote:
> I'm interested in using Cucumber and Capybara to test non-rails (and
> non-rack based) web applications. However, I'm still not clear on how
> to generate the project structure for testing an external web
> application. Is there a generator somewhere that I'm overlooking or
> should I be creating the project files and structure by hand?
There isn't a generator I know of, but it's pretty simple to do by hand. In your project's root directory:
Then create a file features/support/env.rb which looks something like this:
Capybara.default_driver = :selenium
Capybara.app_host = 'http://hostname-of-your-test-server.com'
Then just start creating features and follow Cucumber's snippets to create your step definitions. You should find Capybara's DSL methods are available to you in the step definitions (that's what the #World method does).