added missing gem and configuration for code coverage

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

View file

@ -64,3 +64,4 @@ gem 'em-websocket'
# code coverage # code coverage
gem 'simplecov' gem 'simplecov'
gem 'simplecov-rcov'

View file

@ -2,12 +2,14 @@ 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' require 'simplecov'
require 'simplecov-rcov'
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.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start SimpleCov.start
fixtures :all fixtures :all