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

Support its(:content) for file resource type #281

merged 2 commits into from Oct 17, 2013


None yet
1 participant
Copy link

mizzy commented Oct 17, 2013

You can use this syntax with this patch

describe file('/etc/passwd') do
  its(:content) { should match /root/ }

You can use any matchers rspec supports.

mizzy added some commits Oct 17, 2013

mizzy added a commit that referenced this pull request Oct 17, 2013

Merge pull request #281 from serverspec/file-content
Support its(:content) for file resource type

@mizzy mizzy merged commit 84bb1f1 into master Oct 17, 2013

1 check passed

default The Travis CI build passed

@mizzy mizzy deleted the file-content branch Oct 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment