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