Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only run simplecov on MRI

  • Loading branch information...
commit f13454a1ef5c746eccfa9908ba9531ec383926aa 1 parent 2cfb9b4
@phlipper authored
Showing with 10 additions and 8 deletions.
  1. +1 −0  Gemfile
  2. +0 −1  dead_letter_office.gemspec
  3. +9 −7 spec/minitest_helper.rb
View
1  Gemfile
@@ -19,6 +19,7 @@ group :test do
gem "mysql2"
gem "pg"
gem "sqlite3"
+ gem "simplecov"
end
platforms :jruby do
View
1  dead_letter_office.gemspec
@@ -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
View
16 spec/minitest_helper.rb
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.