2010-06-21 13:02:04 -04:00
|
|
|
ORIG_ARGV = ARGV.dup
|
|
|
|
|
2010-03-17 03:53:48 -04:00
|
|
|
begin
|
|
|
|
old, $VERBOSE = $VERBOSE, nil
|
|
|
|
require File.expand_path('../../../load_paths', __FILE__)
|
|
|
|
ensure
|
|
|
|
$VERBOSE = old
|
|
|
|
end
|
2009-11-09 23:56:49 -05:00
|
|
|
|
2010-08-22 17:43:31 -04:00
|
|
|
require 'active_support/core_ext/kernel/reporting'
|
2011-12-20 12:22:21 -05:00
|
|
|
|
|
|
|
silence_warnings do
|
|
|
|
Encoding.default_internal = "UTF-8"
|
|
|
|
Encoding.default_external = "UTF-8"
|
2010-08-22 01:23:13 -04:00
|
|
|
end
|
|
|
|
|
2012-12-28 14:17:37 -05:00
|
|
|
require 'active_support/testing/autorun'
|
2015-06-11 12:18:33 -04:00
|
|
|
require 'active_support/testing/method_call_assertions'
|
2010-03-17 03:53:48 -04:00
|
|
|
|
2009-03-26 22:10:13 -04:00
|
|
|
ENV['NO_RELOAD'] = '1'
|
2006-07-08 14:14:49 -04:00
|
|
|
require 'active_support'
|
2006-09-03 23:38:13 -04:00
|
|
|
|
2013-01-24 05:10:58 -05:00
|
|
|
Thread.abort_on_exception = true
|
|
|
|
|
2008-11-20 15:08:42 -05:00
|
|
|
# Show backtraces for deprecated behavior for quicker cleanup.
|
2012-01-06 18:18:12 -05:00
|
|
|
ActiveSupport::Deprecation.debug = true
|
2013-08-21 11:07:33 -04:00
|
|
|
|
2013-12-16 13:04:07 -05:00
|
|
|
# Disable available locale checks to avoid warnings running the test suite.
|
|
|
|
I18n.enforce_available_locales = false
|
|
|
|
|
2013-08-21 13:49:03 -04:00
|
|
|
# Skips the current run on Rubinius using Minitest::Assertions#skip
|
2013-08-21 11:07:33 -04:00
|
|
|
def rubinius_skip(message = '')
|
|
|
|
skip message if RUBY_ENGINE == 'rbx'
|
|
|
|
end
|
2013-08-21 13:49:03 -04:00
|
|
|
|
2013-08-20 23:55:28 -04:00
|
|
|
# Skips the current run on JRuby using Minitest::Assertions#skip
|
|
|
|
def jruby_skip(message = '')
|
2014-01-13 06:24:06 -05:00
|
|
|
skip message if defined?(JRUBY_VERSION)
|
2013-08-20 23:55:28 -04:00
|
|
|
end
|
2014-07-19 16:35:12 -04:00
|
|
|
|
2015-06-11 12:18:33 -04:00
|
|
|
class ActiveSupport::TestCase
|
|
|
|
include ActiveSupport::Testing::MethodCallAssertions
|
|
|
|
end
|