-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add File#exists? #519
add File#exists? #519
Conversation
Depends on mizzy/specinfra#384 |
You should test file resource strictly with |
@mizzy What is the correct way to test for the non-existence of a file? |
@jhoblitt Ah, I see what you would like to do with this PR. Please write your aim of the PR in the description field. |
@mizzy I thought it was just a simple oversight since many of the other base types respond to |
Thanks for updating the description! It's sufficient. |
Released as v2.17.0. |
@mizzy Thanks! |
@jhoblitt Thanks for this! It's frustrated me in the past, too. |
@conorsch your welcome! |
When doing negative testing, I.e., asserting that 'this' path should not exist, it would be more concise to be able to express this in serverspec as: