summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index acfae0c..ccd305b 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,10 +1,13 @@
require 'puppetlabs_spec_helper/module_spec_helper'
-require 'simplecov'
require 'support/filesystem_helpers'
require 'support/fixture_helpers'
-SimpleCov.start do
- add_filter "/spec/"
+# SimpleCov does not run on Ruby 1.8.7
+unless RUBY_VERSION.to_f < 1.9
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter '/spec/'
+ end
end
RSpec.configure do |c|