changes for code coverage

This commit is contained in:
roy 2012-11-08 21:11:54 +01:00
parent 1584b2f43c
commit 4342bc7b49
2 changed files with 5 additions and 0 deletions

View file

@ -61,3 +61,6 @@ gem 'mysql2'
# event machine # event machine
gem 'eventmachine' gem 'eventmachine'
gem 'em-websocket' gem 'em-websocket'
# code coverage
gem 'simplecov'

View file

@ -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