diff options
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | spec/spec_helper.rb | 11 |
2 files changed, 11 insertions, 1 deletions
@@ -113,6 +113,7 @@ group :development, :test do end group :test do + gem 'simplecov' gem 'webmock' gem 'email_spec' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d6f82e8..29329b7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,13 @@ -# This file is copied to spec/ when you run 'rails generate rspec:install' +if ENV['SIMPLECOV'] + require 'simplecov' + SimpleCov.start +end + +if ENV['COVERALLS'] + require 'coveralls' + Coveralls.wear!('rails') +end + ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' |