5. Cucumber scenarios

The Cucumber scenarios and step definitions (everything under features/, including the support for Webmock in webmock.rb, which stands in for the random-word service so the scenarios can choose the word) were copied verbatim from the Sinatra version, with one exception: the features/support/env.rb file is simpler because the cucumber-rails gem automatically does some of the things we had to do explicitly in that file for the Sinatra version.

Verify the Cucumber scenarios run and pass by running bundle exec cucumber.

Q5.1. What is a qualitative explanation for why the Cucumber scenarios and step definitions didn’t need to be modified at all to work equally well with the Sinatra or Rails versions of the app?


This site uses Just the Docs, a documentation theme for Jekyll.