Merge pull request #120 from houdiniproject/fix_test_coverage
Fix test coverage
This commit is contained in:
commit
0d4786427a
5 changed files with 15 additions and 11 deletions
2
Gemfile
2
Gemfile
|
@ -129,10 +129,10 @@ group :development, :ci, :test do
|
|||
gem 'factory_bot'
|
||||
gem 'factory_bot_rails'
|
||||
gem 'action_mailer_matchers'
|
||||
gem 'simplecov', '~> 0.16.1', require: false
|
||||
end
|
||||
|
||||
group :test do
|
||||
gem 'codecov', require: false
|
||||
gem 'vcr'
|
||||
gem 'webmock'
|
||||
end
|
||||
|
|
15
Gemfile.lock
15
Gemfile.lock
|
@ -112,10 +112,6 @@ GEM
|
|||
aws-sdk (~> 1.58)
|
||||
carrierwave (~> 0.7)
|
||||
chronic (0.10.2)
|
||||
codecov (0.1.5)
|
||||
json
|
||||
simplecov
|
||||
url
|
||||
coderay (1.1.2)
|
||||
coercible (1.0.0)
|
||||
descendants_tracker (~> 0.0.1)
|
||||
|
@ -159,7 +155,7 @@ GEM
|
|||
devise-async (0.9.0)
|
||||
devise (~> 3.2)
|
||||
diff-lcs (1.2.5)
|
||||
docile (1.1.5)
|
||||
docile (1.3.1)
|
||||
domain_name (0.5.20160615)
|
||||
unf (>= 0.0.5, < 1.0.0)
|
||||
dotenv (2.0.1)
|
||||
|
@ -389,11 +385,11 @@ GEM
|
|||
railties (~> 3.2.0)
|
||||
sass (>= 3.1.10)
|
||||
tilt (~> 1.3)
|
||||
simplecov (0.12.0)
|
||||
docile (~> 1.1.0)
|
||||
simplecov (0.16.1)
|
||||
docile (~> 1.1)
|
||||
json (>= 1.8, < 3)
|
||||
simplecov-html (~> 0.10.0)
|
||||
simplecov-html (0.10.0)
|
||||
simplecov-html (0.10.2)
|
||||
sixarm_ruby_unaccent (1.2.0)
|
||||
sprockets (2.2.3)
|
||||
hike (~> 1.2)
|
||||
|
@ -426,7 +422,6 @@ GEM
|
|||
unf_ext
|
||||
unf_ext (0.0.7.2)
|
||||
unicode_utils (1.4.0)
|
||||
url (0.3.2)
|
||||
vcr (2.9.3)
|
||||
virtus (1.0.5)
|
||||
axiom-types (~> 0.1)
|
||||
|
@ -455,7 +450,6 @@ DEPENDENCIES
|
|||
carrierwave
|
||||
carrierwave-aws
|
||||
chronic
|
||||
codecov
|
||||
colorize
|
||||
config (> 1.5)
|
||||
countries
|
||||
|
@ -513,6 +507,7 @@ DEPENDENCIES
|
|||
ruby-prof (= 0.15.9)
|
||||
sass (= 3.2.19)
|
||||
sass-rails (= 3.2.6)
|
||||
simplecov (~> 0.16.1)
|
||||
sprockets
|
||||
stripe
|
||||
stripe-ruby-mock (~> 2.4.1)!
|
||||
|
|
|
@ -23,6 +23,8 @@ COPY Gemfile.lock /myapp/Gemfile.lock
|
|||
RUN bundle install
|
||||
RUN chown -R $USER /myapp/Gemfile
|
||||
RUN chgrp -R $USER /myapp/Gemfile.lock
|
||||
RUN chown -R $USER /usr/local/bundle
|
||||
RUN chgrp -R $USER /usr/local/bundle
|
||||
USER $USER
|
||||
EXPOSE 5000
|
||||
CMD foreman start
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env ruby
|
||||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
||||
if ENV['RAILS_ENV'] == 'test'
|
||||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
puts "required simplecov"
|
||||
end
|
||||
|
||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
||||
require File.expand_path('../../config/boot', __FILE__)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'simplecov'
|
||||
SimpleCov.start
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||
ENV['RAILS_ENV'] ||= 'test'
|
||||
|
|
Loading…
Reference in a new issue