]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(#10263) Fix tests on Puppet 2.6.x
authorKen Barber <ken@bob.sh>
Tue, 25 Oct 2011 09:10:42 +0000 (10:10 +0100)
committerKen Barber <ken@bob.sh>
Tue, 25 Oct 2011 09:31:26 +0000 (10:31 +0100)
commit85ab45fcb13ec0da3eb74c316369f1a9d1fbcba8
treec87c5f979e647a8bb3f846af54c15bbed71158e9
parenta869eac26f9ab801edbdf7d6a953f08df524a249
(#10263) Fix tests on Puppet 2.6.x

Due to the lack of Puppet::Test::LogCollector class, tests fail on puppet
2.6.x. Instead of just using the class, I'm testing its existance first
and only using it if it exists. Otherwise, I'm going to fall back to 2.6.x
methodology.

This seems to make tests work on 2.6.7 (and up) and 2.7.1 (and up) which is
sufficient for now.
spec/spec_helper.rb