rspec-puppet: compile matcher fails when checking classes targeting windows on posix.

We’re trying to use the compile matcher on all of our role classes. Our puppetmaster serves windows and linux nodes. each node definition has one role class assigned.

when trying to compile a windows role, on a ci linux or dev osx machine. there’s inevitably a File resource with a path of the form: C:\foo.txt rspec-puppet fails to compile the class because File paths must be fully qualified, not 'C:\foo.txt'

Any guidance on how to resolve this would be greatly appreciated.

for those interested I’ve created a sample project which illustrates the issue:

https://github.com/fessyfoo/rspec-puppet-windows-issue

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 1
  • Comments: 22 (1 by maintainers)

Commits related to this issue

Most upvoted comments

+1, same issue here.