Merge branch 'master' of github.com:martini/zammad

This commit is contained in:
Martin Edenhofer 2012-11-11 23:24:15 +01:00
commit fe769e3b93
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -1,12 +1,16 @@
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'
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
fixtures :all fixtures :all
# load seeds # load seeds