2016-08-06 12:38:23 -04:00
|
|
|
require "active_model"
|
2009-03-20 06:32:24 -04:00
|
|
|
|
|
|
|
# Show backtraces for deprecated behavior for quicker cleanup.
|
|
|
|
ActiveSupport::Deprecation.debug = true
|
|
|
|
|
2013-12-23 14:50:59 -05:00
|
|
|
# Disable available locale checks to avoid warnings running the test suite.
|
|
|
|
I18n.enforce_available_locales = false
|
|
|
|
|
2016-08-06 12:38:23 -04:00
|
|
|
require "active_support/testing/autorun"
|
|
|
|
require "active_support/testing/method_call_assertions"
|
2014-07-19 16:35:12 -04:00
|
|
|
|
2015-02-27 08:29:54 -05:00
|
|
|
# Skips the current run on Rubinius using Minitest::Assertions#skip
|
2016-08-06 12:38:23 -04:00
|
|
|
def rubinius_skip(message = "")
|
|
|
|
skip message if RUBY_ENGINE == "rbx"
|
2015-02-27 08:29:54 -05:00
|
|
|
end
|
|
|
|
# Skips the current run on JRuby using Minitest::Assertions#skip
|
2016-08-06 12:38:23 -04:00
|
|
|
def jruby_skip(message = "")
|
2015-02-27 08:29:54 -05:00
|
|
|
skip message if defined?(JRUBY_VERSION)
|
|
|
|
end
|
2015-07-10 17:42:18 -04:00
|
|
|
|
|
|
|
class ActiveModel::TestCase
|
|
|
|
include ActiveSupport::Testing::MethodCallAssertions
|
|
|
|
end
|