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

Our First Aruba Feature

Aruba is a Ruby gem that bundles several useful Cucumber step definitions that you can use in your own scenarios. To stay focused on what Aruba has to offer, we’re not going to build our own command-line application right now. Instead, we’ll just use Aruba to test the ruby command-line application. We’re going to start off by writing our feature without installing the aruba gem. Just bear with us; you will soon see it in action. Let’s start with something basic.

Streams and Exit Status

The ruby command has a number of handy command-line options. One of them is the -e option, which lets us execute a one-liner of Ruby code.

Let’s implement a scenario that verifies that the following command works as expected:

 $

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