Skip to content
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
merged 2 commits into from Oct 17, 2013
Merged

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

merged 2 commits into from Oct 17, 2013

Conversation

@mizzy
Copy link
Owner

@mizzy mizzy commented Oct 17, 2013

You can use this syntax with this patch

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

You can use any matchers rspec supports.

mizzy added a commit that referenced this issue Oct 17, 2013
Support its(:content) for file resource type
@mizzy mizzy merged commit 84bb1f1 into master Oct 17, 2013
1 check 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
Labels
None yet
Projects
None yet
1 participant