description = "Cucumber and Aruba make it awesome to write acceptance tests for your command line programs. But how do you test your program interacting withfiles from a user's <code>$HOME</code> directory?"
slug = "testing-home-with-cucumber-and-aruba"
+++
[Cucumber][1] and [Aruba][2] are awesome tools to write acceptance tests for your command line application. The allow you to do things like this:
This will set `$HOME` to `tmp/aruba/home` in the context of your cucumbers (and execute binary). `current_dir` automatically points to the right location for the aruba temporary directory.