test/helper.rb in peddler-1.4.1 vs test/helper.rb in peddler-1.5.0

- old
+ new

@@ -1,14 +1,16 @@ -require 'simplecov' -require 'coveralls' +if RUBY_ENGINE == 'ruby' + require 'simplecov' + require 'coveralls' -SimpleCov.formatters = [ - SimpleCov::Formatter::HTMLFormatter, - Coveralls::SimpleCov::Formatter -] + SimpleCov.formatters = [ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter + ] -SimpleCov.start do - add_filter '/test/' + SimpleCov.start do + add_filter '/test/' + end end require 'minitest/autorun' begin require 'pry'