aruba - Cucumber steps for testing your command line apps
Terminal junkies rejoice! Now you can use Cucumber to test your command line interfaces just like you do for your web apps. Aruba from Cucumber creator Aslak Hellesøy provides familiar step definitions for testing output, exit statuses, and file system commands. Here’s an example feature file for testing exit statuses:
Aruba provides the exit status step:
To use Aruba just install the gem
sudo gem install aruba
and then require it in your env.rb or any file under features/support
require 'aruba'