Module: Devise::TestHelpers

Defined in:
lib/devise/test_helpers.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/devise/test_helpers.rb', line 5

def self.included(base)
  base.class_eval do
    ActiveSupport::Deprecation.warn <<-DEPRECATION.strip_heredoc
      [Devise] including `Devise::TestHelpers` is deprecated and will be removed from Devise.
      For controller tests, please include `Devise::Test::ControllerHelpers` instead.
    DEPRECATION
    include Devise::Test::ControllerHelpers
  end
end