Add simplecov

This commit is contained in:
2014-03-04 17:23:38 +01:00
parent 6c00604b83
commit 3f117c76b0
5 changed files with 10 additions and 1 deletions
+1
View File
@@ -33,3 +33,4 @@ zeus.json
custom_plan.rb custom_plan.rb
public/capybara.html public/capybara.html
chromedriver.log chromedriver.log
/coverage
+1
View File
@@ -80,6 +80,7 @@ group :test do
gem 'launchy' gem 'launchy'
gem 'fuubar' gem 'fuubar'
#gem 'rb-fsevent', :require => false #if RUBY_PLATFORM =~ /darwin/i #gem 'rb-fsevent', :require => false #if RUBY_PLATFORM =~ /darwin/i
gem 'simplecov', require: false
gem 'factory_girl_rails' gem 'factory_girl_rails'
gem 'pry-rails' gem 'pry-rails'
end end
+5
View File
@@ -304,6 +304,10 @@ GEM
simple_form (3.0.1) simple_form (3.0.1)
actionpack (>= 4.0.0, < 4.1) actionpack (>= 4.0.0, < 4.1)
activemodel (>= 4.0.0, < 4.1) activemodel (>= 4.0.0, < 4.1)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slim (2.0.2) slim (2.0.2)
temple (~> 0.6.6) temple (~> 0.6.6)
tilt (>= 1.3.3, < 2.1) tilt (>= 1.3.3, < 2.1)
@@ -389,6 +393,7 @@ DEPENDENCIES
rspec-rails rspec-rails
sass-rails sass-rails
simple_form simple_form
simplecov
simply_stored! simply_stored!
slim-rails slim-rails
thin thin
+1 -1
View File
@@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base
before_filter :set_locale before_action :set_locale
layout :layout_by_resource layout :layout_by_resource
#protect_from_forgery #protect_from_forgery
+2
View File
@@ -1,5 +1,7 @@
# This file is copied to spec/ when you run 'rails generate rspec:install' # This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test' ENV["RAILS_ENV"] ||= 'test'
require 'simplecov'
SimpleCov.start 'rails'
require File.expand_path("../../config/environment", __FILE__) require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails' require 'rspec/rails'
require 'rspec/matchers' require 'rspec/matchers'