javascript runtime gem required for cucumber tests with rails

Problem

According to the ‘Cucumber book’ the gems required to start using cucumber with a rails application are the following:

On the most recent rails version (currently 3.2.9) the gems need to be updated and also include the javascript runtime gem ‘therubyracer’

Solution

The following gems are working with Rails 3.2.9

You can then run the

command to generate the files and folders necessary for cucumber.