--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
There isn't a generator I know of, but it's pretty simple to do by hand. In your project's root directory:
mkdir features
mkdir features/support
mkdir features/step_definitions
Then create a file features/support/env.rb which looks something like this:
require 'capybara'
require 'capybara/dsl'
Capybara.default_driver = :selenium
Capybara.app_host = 'http://hostname-of-your-test-server.com'
World(Capybara)
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).
Good luck.
cheers,
Matt
require 'capybara/cucumber'
that will include Capybara in the World for you and also set up some
useful tags (@javascript, etc..)
/Jonas