summaryrefslogtreecommitdiffstats
path: root/examples/code/snippets/classheirarchy.pp
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-06-07 16:09:21 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-06-07 16:09:21 -0700
commitb4e9791df5c01183ff037a346361ed3667e67552 (patch)
tree48859c1ccf73ce288974a18ceed636f8cf87e5ac /examples/code/snippets/classheirarchy.pp
parent5c89129859bf7d9cb2533a6438cb9db0a8fee2be (diff)
downloadpuppet-b4e9791df5c01183ff037a346361ed3667e67552.tar.gz
puppet-b4e9791df5c01183ff037a346361ed3667e67552.tar.xz
puppet-b4e9791df5c01183ff037a346361ed3667e67552.zip
maint: handle incoherent Test::Unit assertions.
So, it turns out that the 1.8.7 Test::Unit assertions are a bit quirky. If we use 'assert_match' it will turn a String into a regular expression by passing it through Regexp.quote automatically. If you use 'assert_no_match', though, it will not do that. It will just complain that it isn't a Regexp and blow up. So, we manually quote outside the assertion in both cases, and things should just work.
Diffstat (limited to 'examples/code/snippets/classheirarchy.pp')
0 files changed, 0 insertions, 0 deletions