Atalanta/cucumber-chef — pull request #75 by pikesley (2012-08-29 12:58:56+00:00)
Title: path "/foo/bar/baz" should exist

I found myself writing stuff like

* I run "ls /foo/bar"
* I should see "baz" in the output

(to check that a path is created), and

* I run "stat -c %U:%G /foo/bar/baz"
* I should see "user:group" in the output

(to check ownership) more often than I liked. So I added some handlers for these cases. The above steps can now be covered with:

* path "/foo/bar/baz" should exist
* path "/foo/bar/baz" should be owned by "user:group"

There's probably a more elegant way to implement this (I'm still getting my head around the guts of cuke-chef) but it seems to work.