Installation Steps (modified by Luis Manotas @xluisManotasx)
Install [capybara] to use cucumber with it. Cucumber will detect it and make the needed configurations to use it during testing.
Including config.gem instructions in your environment.rb or environments/test.rb is not needed as cucumber generator will automatically create a new environment and configure it properly.
Generate features folder:
ruby script/generate cucumber
This command also generates a file: config/environments/cucumber.rb, which stores environment configurations for cucumber.
In your gemfile
group :cucumber do gem 'capybara' gem 'cucumber' gem 'cucumber-rails' end
Lets run the bundle install
$ bundle install
Generate the cucumber configuration
$ rails g cucumber:install
To run your Cucumber Features
There are two ways
$ rake cucumber [options]
$ bundle exec cucumber [options]
Run the following commands:
gem install cucumber gem install cucumber-rails
Integrating with Autotest