Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Commit

Permalink
only run simplecov on MRI
Browse files Browse the repository at this point in the history
  • Loading branch information
phlipper committed Aug 6, 2012
1 parent 2cfb9b4 commit f13454a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ group :test do
gem "mysql2"
gem "pg"
gem "sqlite3"
gem "simplecov"
end

platforms :jruby do
Expand Down
1 change: 0 additions & 1 deletion dead_letter_office.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ Gem::Specification.new do |s|
s.add_development_dependency "capybara"
s.add_development_dependency "guard-minitest"
s.add_development_dependency "minitest-rails"
s.add_development_dependency "simplecov"
end
16 changes: 9 additions & 7 deletions spec/minitest_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
begin
require "simplecov"
SimpleCov.add_filter "spec"
SimpleCov.command_name "MiniTest"
SimpleCov.start "rails"
rescue LoadError
warn "unable to load SimpleCov"
if RUBY_ENGINE == "ruby"
begin
require "simplecov"
SimpleCov.add_filter "spec"
SimpleCov.command_name "MiniTest"
SimpleCov.start "rails"
rescue LoadError
warn "unable to load SimpleCov"
end
end

ENV["RAILS_ENV"] = "test"
Expand Down

0 comments on commit f13454a

Please sign in to comment.