Permalink
Browse files

Add coverage report with SimpleCov

  • Loading branch information...
1 parent 02a8bd0 commit cd89cbb55886af597028e2618f16131200aad4b9 @sferik sferik committed Mar 13, 2012
Showing with 8 additions and 3 deletions.
  1. +3 −2 .gitignore
  2. +1 −0 delayed_job.gemspec
  3. +4 −1 spec/spec_helper.rb
View
@@ -1,5 +1,6 @@
*.gem
*.swp
-Gemfile.lock
.DS_Store
-.rvmrc
+.rvmrc
+/coverage
+Gemfile.lock
View
@@ -24,4 +24,5 @@ This gem is collectiveidea's fork (http://github.com/collectiveidea/delayed_job)
s.add_development_dependency 'rails', '~> 3.0'
s.add_development_dependency 'rspec', '~> 2.0'
s.add_development_dependency 'rake'
+ s.add_development_dependency 'simplecov'
end
View
@@ -1,4 +1,7 @@
-$:.unshift(File.dirname(__FILE__) + '/../lib')
+unless ENV['CI']
+ require 'simplecov'
+ SimpleCov.start
+end
require 'bundler/setup'
require 'logger'

0 comments on commit cd89cbb

Please sign in to comment.