DevOps Zone is brought to you in partnership with:

I’m a passionate web application developer and Ruby on Rails enthusiast. I love building stunning web applications and working with interesting people. I feel comfortable developing on the frontend as well as on the backend and I have a firm grasp of JavaScript and HTML5. In general I like being involved in many aspects of a product and to figure out perfect technical solutions for everybody’s satisfaction. Clemens is a DZone MVB and is not an employee of DZone and has posted 10 posts at DZone. You can read more from them at their website. View Full User Profile

How to Set Up Cucumber with Ruby and Rails Projects

07.24.2013
| 1944 views |
  • submit to reddit

Every week we will share our insights and opinions on the software testing space. Drop by every Tuesday (or Wednesday in syndication) to learn more! Last week we showed you how to set up RSpec with standalone Ruby applications and Rails web applications.


Set up Cucumber for Ruby applications

For all Ruby applications you can use the cucumber gem. In the screencast we walk you through creating a basic Ruby project and installing cucumber using bundler. We implement one passing scenario and make Cucumber use RSpec expectations instead of Minitest that ships with Ruby.

Set up Cucumber for Rails web applications

There is a special cucumber-rails gem that makes setting up Cucumber with Ruby on Rails web applications even easier. It contains a generator that prepares your app by adding preconfigured cucumber profiles, rake tasks and a Cucumber script. We’ll look into the advantages in more detail in the screencast.

Published at DZone with permission of Clemens Helm, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)