Acceptance tests are run in a clean single-use environment, so this should be fine. Even using `$$` in the name is probably unnecessary, though it doesn't hurt.

What you do need is a cleanup block that removes up the directory when you're done. This helps ensure that later tests don't come to depend on the state left by this test, which can make it hard to iterate quickly by running only a single test.

Move `dir` up to just below the confine line, and just below that add something like:

    teardown do
        on hosts, "rm -rf #{dir}"
    end