changes for code coverage
This commit is contained in:
parent
1584b2f43c
commit
4342bc7b49
2 changed files with 5 additions and 0 deletions
3
Gemfile
3
Gemfile
|
@ -61,3 +61,6 @@ gem 'mysql2'
|
||||||
# event machine
|
# event machine
|
||||||
gem 'eventmachine'
|
gem 'eventmachine'
|
||||||
gem 'em-websocket'
|
gem 'em-websocket'
|
||||||
|
|
||||||
|
# code coverage
|
||||||
|
gem 'simplecov'
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
ENV["RAILS_ENV"] = "test"
|
ENV["RAILS_ENV"] = "test"
|
||||||
require File.expand_path('../../config/environment', __FILE__)
|
require File.expand_path('../../config/environment', __FILE__)
|
||||||
require 'rails/test_help'
|
require 'rails/test_help'
|
||||||
|
require 'simplecov'
|
||||||
|
|
||||||
class ActiveSupport::TestCase
|
class ActiveSupport::TestCase
|
||||||
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
||||||
#
|
#
|
||||||
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
||||||
# -- they do not yet inherit this setting
|
# -- they do not yet inherit this setting
|
||||||
|
SimpleCov.start
|
||||||
fixtures :all
|
fixtures :all
|
||||||
|
|
||||||
# load seeds
|
# load seeds
|
||||||
|
|
Loading…
Reference in a new issue