mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Ensure that this is only called when necessary.
This commit is contained in:
@@ -23,9 +23,11 @@ OmniAuth.config.logger = Logger.new('/dev/null')
|
||||
$:.unshift File.expand_path('../support', __FILE__)
|
||||
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
||||
|
||||
# Devise test suite is order dependent, and we need to ensure that same order
|
||||
# in Rails 4.2.0.
|
||||
ActiveSupport::TestCase.my_tests_are_order_dependent!
|
||||
if ActiveSupport::TestCase.respond_to?(:my_tests_are_order_dependent!)
|
||||
# Devise test suite is order dependent, and we need to ensure that same order
|
||||
# in Rails 4.2.0.
|
||||
ActiveSupport::TestCase.my_tests_are_order_dependent!
|
||||
end
|
||||
|
||||
# For generators
|
||||
require "rails/generators/test_case"
|
||||
|
||||
Reference in New Issue
Block a user