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:

 
$ ​

Get The Cucumber Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.