Installing Cucumber (and RSpec)

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,[75] so you’ll need that in your Gemfile too:

 source ​:rubygems
 
 group ​:test​ ​do
  gem ​'cucumber'​, ​'1.2.1'
  gem ​'rspec-expectations'​, ​'2.11.2'
 end

Cucumber will then install with the following command:

 $ ​​bundle​​ ​​install

To verify that you have installed it properly, run cucumber --help.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.215.96