diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 74af9d331..9331e8a70 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,6 +1,8 @@ -require 'coveralls' -Coveralls.wear!('rails') ENV['RAILS_ENV'] ||= 'test' +if ENV['TRAVIS'] + require 'coveralls' + Coveralls.wear!('rails') +end require File.expand_path('../../config/environment', __FILE__) abort("The Rails environment is running in production mode!") if Rails.env.production?