test/helper.rb in stepper-0.1.0 vs test/helper.rb in stepper-0.2.0
- old
+ new
@@ -7,11 +7,18 @@
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
+if ENV["COVERAGE"]
+ require "simplecov"
+ SimpleCov.start "rails" do
+ add_filter "/test/"
+ end
+end
+
require 'test/unit'
-require 'ruby-debug'
+require 'ruby-debug' unless ENV["CI"]
require 'shoulda'
require 'stepper'
require "rails_app/config/environment"
require "rails/test_help"
require 'capybara/rails'