puppetlabs/rspec-system-puppet — pull request #31 by 3flex (2013-11-30 23:20:24+00:00)
Title: Specify acceptable puppet_apply exit codes

Since puppet_apply runs with --detailed-exitcodes, puppet apply may respond with 0, 1, 2, 4 or 6 on the first run. 0 or 2 indicate no failure.

Checking only that it doesn't equal 1 ignores the 4 and 6 failure codes.