I'd suggest add the spec for the cases:

- part of `path` is really a file (which is why we're using `File.exist?` instead of `Dir.exist?`)
- providing a partial path instead of a full path (the `let(:dirname)` will always provide a full path due to how `test_root` is currently written); be to be explicit on full path and partial path behavior