HomePhorge

(maint) Fix two spec tests to be robust when running in a path with parens
64fc465f790bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(maint) Fix two spec tests to be robust when running in a path with parens

Both of these spec tests were including the working directory (via
the 'envdir' variable) in the regex to match against, but did so without
properly escaping the directory path. This meant that if the working
directory path included parentheses they were interpreted as regex
symbols rather than bare parentheses.

This could be fixed by wrapping the envdir in Regexp.escape, but
the path isn't really important to check for in this warning message,
so I just removed it from the regex.

Details

Provenance
Kylo Ginsberg <kylo@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU67241097aa83: (packaging) Update PUPPETVERSION to 3.6.0-rc1
Branches
Unknown
Tags
Unknown

Event Timeline

Kylo Ginsberg <kylo@puppetlabs.com> committed rPU64fc465f790b: (maint) Fix two spec tests to be robust when running in a path with parens (authored by Kylo Ginsberg <kylo@puppetlabs.com>).May 2 2014, 8:46 PM