Cucumber is packaged as a gem and can be installed by running gem install cucumber. However, most of the examples in this book assume you install it via Bundler, which means having a Gemfile in the root directory of your project. Most of the examples also assume you’ll use RSpec, so you’ll need that in your Gemfile too:
|||group :test do|
|||gem 'cucumber', '1.2.1'|
|||gem 'rspec-expectations', '2.11.2'|
Cucumber will then install with the following command:
|||$ bundle install|
To verify that you have installed it properly, run cucumber --help.