From 8b4ecc2a2e31e76d6fa9d637e019584af6cbf665 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Tue, 6 Mar 2012 15:24:13 -0800 Subject: [PATCH] Add simplecov --- test_app/.gitignore | 1 + test_app/Gemfile | 1 + test_app/spec/spec_helper.rb | 2 ++ test_app/test/test_helper.rb | 2 ++ 4 files changed, 6 insertions(+) diff --git a/test_app/.gitignore b/test_app/.gitignore index bad171f..351f638 100644 --- a/test_app/.gitignore +++ b/test_app/.gitignore @@ -12,5 +12,6 @@ /db/*.sqlite3 # Ignore all logfiles and tempfiles. +/coverage /log/*.log /tmp diff --git a/test_app/Gemfile b/test_app/Gemfile index 0f008ae..f136fe9 100644 --- a/test_app/Gemfile +++ b/test_app/Gemfile @@ -39,6 +39,7 @@ end group :test do gem 'cucumber-rails' + gem 'simplecov' end gem 'jquery-rails' diff --git a/test_app/spec/spec_helper.rb b/test_app/spec/spec_helper.rb index 88bf38e..ad2a267 100644 --- a/test_app/spec/spec_helper.rb +++ b/test_app/spec/spec_helper.rb @@ -1,5 +1,7 @@ # This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' +require 'simplecov' +SimpleCov.start 'rails' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' diff --git a/test_app/test/test_helper.rb b/test_app/test/test_helper.rb index 8bf1192..07bc61b 100644 --- a/test_app/test/test_helper.rb +++ b/test_app/test/test_helper.rb @@ -1,4 +1,6 @@ ENV["RAILS_ENV"] = "test" +require 'simplecov' +SimpleCov.start 'rails' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help'