Skip to content
Browse files

Only add rcov task if rcov can load (doesn't work on Rubinius).

  • Loading branch information...
1 parent d9b2445 commit 1214dadc2bbc90ffbe3240581aca2d10379ef4a5 @pat committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 Gemfile
  2. +1 −1 tasks/testing.rb
View
2 Gemfile
@@ -6,6 +6,6 @@ gem 'rspec', '>= 1.2.0'
group :development do
gem 'jeweler', '1.5.1'
gem 'rake', '0.8.7'
- gem 'rcov', '0.9.8'
+ gem 'rcov', '0.9.8', :platform => [:mri, :jruby]
gem 'yard', '0.7.2'
end
View
2 tasks/testing.rb
@@ -8,7 +8,7 @@
t.pattern = 'spec/**/*_spec.rb'
t.rcov = true
t.rcov_opts = ['--exclude', 'spec', '--exclude', 'gems']
-end
+end if defined?(Rcov)
task :default => :test
task :test => :spec

0 comments on commit 1214dad

Please sign in to comment.
Something went wrong with that request. Please try again.