Skip to content

Commit

Permalink
Since we are now supporting multiple Ruby versions and all of them wo…
Browse files Browse the repository at this point in the history
…rks with different code coverage tools then it's wise to make sure SimpleCov kicks in only in case of Ruby 1.9+
  • Loading branch information
Vladislav Gangan committed Jun 11, 2012
1 parent 564127d commit 2782004
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion emory.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

s.add_development_dependency 'rspec', '~> 2.10'
s.add_development_dependency 'simplecov', '~> 0.6.2'
s.add_development_dependency 'simplecov', '~> 0.6.4' if RUBY_VERSION =~ /1.9/
s.add_development_dependency 'rake'

s.add_runtime_dependency 'logging'
Expand Down
6 changes: 4 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'simplecov'
SimpleCov.start
if RUBY_VERSION =~ /1.9/
require 'simplecov'
SimpleCov.start
end

require 'rspec'
require 'logging'
Expand Down

0 comments on commit 2782004

Please sign in to comment.