Add simplecov
This commit is contained in:
@@ -33,3 +33,4 @@ zeus.json
|
|||||||
custom_plan.rb
|
custom_plan.rb
|
||||||
public/capybara.html
|
public/capybara.html
|
||||||
chromedriver.log
|
chromedriver.log
|
||||||
|
/coverage
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,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
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user