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

Merged
merged 2 commits into from Oct 17, 2013

Conversation

Projects
None yet
1 participant
@mizzy
Owner

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 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
Details

@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