2012-04-10 13:31:21 +00:00
|
|
|
ENV["RAILS_ENV"] = "test"
|
|
|
|
require File.expand_path('../../config/environment', __FILE__)
|
|
|
|
require 'rails/test_help'
|
2012-11-08 20:11:54 +00:00
|
|
|
require 'simplecov'
|
2012-11-08 20:21:01 +00:00
|
|
|
require 'simplecov-rcov'
|
2012-04-10 13:31:21 +00:00
|
|
|
|
|
|
|
class ActiveSupport::TestCase
|
|
|
|
# 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
|
|
|
|
# -- they do not yet inherit this setting
|
2012-11-08 20:21:01 +00:00
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
|
2012-11-08 20:11:54 +00:00
|
|
|
SimpleCov.start
|
2012-04-10 13:31:21 +00:00
|
|
|
fixtures :all
|
|
|
|
|
2012-12-26 22:02:16 +00:00
|
|
|
# disable transactions
|
|
|
|
self.use_transactional_fixtures = false
|
|
|
|
|
2012-05-06 20:48:23 +00:00
|
|
|
# load seeds
|
|
|
|
load "#{Rails.root}/db/seeds.rb"
|
|
|
|
|
2012-04-10 13:31:21 +00:00
|
|
|
# Add more helper methods to be used by all tests here...
|
|
|
|
end
|