Skip to content

Commit

Permalink
Fix non-class resource coverage in Puppet > 4.0
Browse files Browse the repository at this point in the history
Use the correct test_module manifests path to ensure that directly-
declared resources are correctly marked as requiring coverage.
  • Loading branch information
Zetten committed Jun 30, 2015
1 parent 3094e2d commit 1196ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec-puppet/coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def add_from_catalog(catalog, test_module)
# test_module's directory tree or the site manifest(s)
if Puppet.version.to_f >= 4.0
paths = [
(Pathname.new(Puppet[:environmentpath]) + 'fixtures' + test_module + 'manifests').to_s,
(Pathname.new(Puppet[:environmentpath]) + 'fixtures' + 'modules' + test_module + 'manifests').to_s,
(Pathname.new(Puppet[:environmentpath]) + 'fixtures' + 'manifests' + 'site.pp').to_s
]
else
Expand Down

0 comments on commit 1196ae2

Please sign in to comment.