From f0a0aba37fc80632ce09241bdc40bbd67e0c4e7f Mon Sep 17 00:00:00 2001 From: Joao Carlos Date: Sat, 2 Apr 2011 13:12:36 +0300 Subject: [PATCH] Adds simplecov. --- .gitignore | 1 + Gemfile | 1 + Gemfile.lock | 4 ++++ spec/spec_helper.rb | 3 +++ 4 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 6886fdc..af62164 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .bundle +coverage/ db/*.sqlite3 log/*.log public/stylesheets/ diff --git a/Gemfile b/Gemfile index 70337d0..714f904 100644 --- a/Gemfile +++ b/Gemfile @@ -22,6 +22,7 @@ group :test do gem "fuubar" gem "launchy" gem "shoulda-matchers", :require => false + gem "simplecov", :require => false gem "timecop" end diff --git a/Gemfile.lock b/Gemfile.lock index f595d03..bec9021 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -150,6 +150,9 @@ GEM rubyzip shoulda-matchers (1.0.0.beta1) simple_form (1.3.1) + simplecov (0.4.1) + simplecov-html (~> 0.4.3) + simplecov-html (0.4.3) sqlite3 (1.3.3) sqlite3-ruby (1.3.3) sqlite3 (>= 1.3.3) @@ -187,6 +190,7 @@ DEPENDENCIES rspec-rails shoulda-matchers simple_form + simplecov snowfinch-collector! sqlite3-ruby steak diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9a973c8..1d1c7e8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@ +require "simplecov" +SimpleCov.start + ENV["RAILS_ENV"] ||= "test" require File.expand_path("../../config/environment", __FILE__) require "rspec/rails"