mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Allow default scope to beconfigured.
This commit is contained in:
@@ -66,6 +66,10 @@ class DeviseTest < ActiveSupport::TestCase
|
||||
assert manager.silence_missing_strategies
|
||||
end
|
||||
|
||||
test 'warden default scope is set' do
|
||||
assert_equal :user, Warden::Manager.default_scope
|
||||
end
|
||||
|
||||
test 'warden manager user configuration through a block' do
|
||||
begin
|
||||
@executed = false
|
||||
|
||||
@@ -4,7 +4,7 @@ ActionController::Routing::Routes.draw do |map|
|
||||
map.devise_for :account, :path_names => {
|
||||
:sign_in => 'login', :sign_out => 'logout', :password => 'secret', :confirmation => 'verification'
|
||||
}
|
||||
map.devise_for :organizers, :singular => 'manager',
|
||||
map.devise_for :organizers, :scope => 'manager',
|
||||
:path_prefix => '/:locale',
|
||||
:requirements => { :extra => 'value' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user