HomeSoftware Heritage

Update spec tests for rspec-puppet 2.0
6ad7f74b28eaUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Update spec tests for rspec-puppet 2.0

Update tests for rspec-puppet 2.0

This patch changes should to catalogue for raise_error matchers
since should has the same problems as subject, where it is not
evaluated the way it used to be. We also unpin rspec-puppet.

Guard validate_cmd test for older puppet versions

Test group membership only on newer puppet

The defined() function doesn't seem to work properly with puppet 3.4 and rspec.
defined() works on its own, rspec works on its own, but together they
determine that $gid is not defined and cause errors here. Work around
it by ignoring this check for older puppet version.

Details

Provenance
Colleen Murphy <colleen@puppetlabs.com>Authored on
Bryan Jen <bryan.jen@gmail.com>Committed on Jun 12 2015, 7:45 PM
olasdPushed on Sep 10 2015, 1:22 PM
Parents
rSPCATe71af8118d5e: (╯°□°)╯︵┻━┻ the 2.0.x rewrite
Branches
Unknown
Tags
Unknown

Event Timeline

Bryan Jen <bryan.jen@gmail.com> committed rSPCAT6ad7f74b28ea: Update spec tests for rspec-puppet 2.0 (authored by Colleen Murphy <colleen@puppetlabs.com>).Jun 12 2015, 7:45 PM