Commit f96dbebc5bd30187f32cd4304ba91b024596d53f

Authored by Rafael Manzo
1 parent 1a791411

Added SimpleCov for keep track of tests coverage

Showing 3 changed files with 9 additions and 0 deletions   Show diff stats
@@ -24,6 +24,7 @@ gem 'jquery-rails' @@ -24,6 +24,7 @@ gem 'jquery-rails'
24 24
25 group :test do 25 group :test do
26 gem "shoulda-matchers" 26 gem "shoulda-matchers"
  27 + gem 'simplecov', :require => false
27 end 28 end
28 29
29 group :development, :test do 30 group :development, :test do
@@ -125,6 +125,10 @@ GEM @@ -125,6 +125,10 @@ GEM
125 tilt (~> 1.3) 125 tilt (~> 1.3)
126 shoulda-matchers (2.1.0) 126 shoulda-matchers (2.1.0)
127 activesupport (>= 3.0.0) 127 activesupport (>= 3.0.0)
  128 + simplecov (0.7.1)
  129 + multi_json (~> 1.0)
  130 + simplecov-html (~> 0.7.1)
  131 + simplecov-html (0.7.1)
128 sprockets (2.2.2) 132 sprockets (2.2.2)
129 hike (~> 1.2) 133 hike (~> 1.2)
130 multi_json (~> 1.0) 134 multi_json (~> 1.0)
@@ -159,6 +163,7 @@ DEPENDENCIES @@ -159,6 +163,7 @@ DEPENDENCIES
159 rspec-rails 163 rspec-rails
160 sass-rails (~> 3.2.3) 164 sass-rails (~> 3.2.3)
161 shoulda-matchers 165 shoulda-matchers
  166 + simplecov
162 sqlite3 167 sqlite3
163 therubyracer 168 therubyracer
164 uglifier (>= 1.0.3) 169 uglifier (>= 1.0.3)
spec/spec_helper.rb
  1 +#Starts Simplecov
  2 +require 'simplecov'
  3 +SimpleCov.start
1 # This file is copied to spec/ when you run 'rails generate rspec:install' 4 # This file is copied to spec/ when you run 'rails generate rspec:install'
2 ENV["RAILS_ENV"] ||= 'test' 5 ENV["RAILS_ENV"] ||= 'test'
3 require File.expand_path("../../config/environment", __FILE__) 6 require File.expand_path("../../config/environment", __FILE__)