O'Reilly logo

The Cucumber Book, 2nd Edition by Steve Tooke, Aslak Hellesoy, Matt Wynne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What We Just Learned

Cucumber-Rails integrates Cucumber with Rails.

  • We installed Cucumber-Rails in our Rails project by running the cucumber:install generator. This created several files that wire up Cucumber to run scenarios against our Rails application.

  • We wrote a feature about displaying data without creating any user interface to enter it. Being able to prioritize features this way makes us flexible—we are not dictated by a strict implementation order.

  • We saw how we can use FactoryGirl to populate our database in Given steps.

  • We saw how we can access our web interface using Capybara’s visit method.

Now that you have learned how to set up Cucumber in a Rails application, it’s time to learn more about the full workflow. In the next ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required