Ruby on Rails

Cucumber-Rails is a generator that generates and modifies files in a Rails project so it can be used with Cucumber.


Before you can use the generator, add the gem to your project's Gemfile as follows:

group :test, :development do
  gem 'cucumber-rails', :require => false
  # database_cleaner is not required, but highly recommended
  gem 'database_cleaner'

Install the gem:

bundle install

Run the generator:

rails generate cucumber:install


With Rake:

rake cucumber

Without Rake:

[bundle exec] cucumber