diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-09-16 16:27:30 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-09-16 16:27:30 -0700 |
commit | 45a21f46eec85a48da017af4505cc53c1de92a14 (patch) | |
tree | d03e877232a99877388b0d45640415ca20016747 | |
parent | 8a414d13cc7122543047d9cb27c9eaa9cf42663f (diff) | |
parent | 1a27cd10cb52fe963c864aea9e2b6011a4305872 (diff) |
Merge pull request #208 from sodabrew/simplecov_not_1.8.7
Disable simplecov on Ruby 1.8.7
-rw-r--r-- | spec/spec_helper.rb | 9 |
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| |