diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 495d0e3..77be4b8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -19,10 +19,12 @@ SimpleCov.start SimpleCov.at_exit do - SimpleCov.result.format! - if SimpleCov.result.covered_percent < 100 - warn 'FAIL: RSpec Test coverage fell below 100%' - exit 1 + unless RSpec.configuration.dry_run? + SimpleCov.result.format! + if SimpleCov.result.covered_percent < 100 + warn 'FAIL: RSpec Test coverage fell below 100%' + exit 1 + end end end