Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor: only run coverage for mri 1.9.x+

  • Loading branch information...
commit dcc6fb3f07e20fbcfb9a3680480e00981d18ab44 1 parent c339df3
@TylerBrock TylerBrock authored
Showing with 9 additions and 5 deletions.
  1. +1 −1  Gemfile
  2. +8 −4 tasks/testing.rake
View
2  Gemfile
@@ -14,7 +14,7 @@ group :deploy do
end
group :testing do
- gem 'simplecov'
+ gem 'simplecov', :require => false
gem 'test-unit'
gem 'mocha', '0.12.7'
gem 'shoulda'
View
12 tasks/testing.rake
@@ -17,10 +17,14 @@ namespace :test do
desc "Runs default test suites"
task :ruby do
- SimpleCov.start do
- add_group "Mongo", 'lib/mongo'
- add_group "BSON", 'lib/bson'
- add_filter "/test/"
+ if RUBY_VERSION >= "1.9.0" && RUBY_ENGINE == 'ruby'
+ require 'simplecov'
+
+ SimpleCov.start do
+ add_group "Mongo", 'lib/mongo'
+ add_group "BSON", 'lib/bson'
+ add_filter "/test/"
+ end
end
if ENV['TEST']
Please sign in to comment.
Something went wrong with that request. Please try again.