mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
added routes option to add_module so route view helpers are created
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
1bee9fbef9
commit
6d08646ddc
@@ -63,6 +63,11 @@ class DeviseTest < ActiveSupport::TestCase
|
||||
Devise::ALL.delete(:kivi)
|
||||
Devise::CONTROLLERS.delete(:fruits)
|
||||
|
||||
assert_nothing_raised(Exception) { Devise.add_module(:carrot, :route => :vegetable) }
|
||||
assert_equal 1, Devise::ROUTES.select { |v| v == :vegetable }.size
|
||||
Devise::ALL.delete(:carrot)
|
||||
Devise::ROUTES.delete(:vegetable)
|
||||
|
||||
assert_nothing_raised(Exception) { Devise.add_module(:authenticatable_again, :model => 'devise/model/authenticatable') }
|
||||
assert defined?(Devise::Models::AuthenticatableAgain)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user