Permalink
Browse files

only run simplecov on MRI

  • Loading branch information...
phlipper committed Aug 6, 2012
1 parent 2cfb9b4 commit f13454a1ef5c746eccfa9908ba9531ec383926aa
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
@@ -19,6 +19,7 @@ group :test do
gem "mysql2"
gem "pg"
gem "sqlite3"
+ gem "simplecov"
end
platforms :jruby do
@@ -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
@@ -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"

0 comments on commit f13454a

Please sign in to comment.