mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 07:18:14 -05:00
Added support to config.default_url_options.
This commit is contained in:
@@ -76,8 +76,13 @@ class MappingTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
test 'parsed path is returned' do
|
||||
assert_equal '/account', Devise.mappings[:account].parsed_path
|
||||
assert_equal '/en/organizers', Devise.mappings[:manager].parsed_path
|
||||
begin
|
||||
Devise.default_url_options {{ :locale => I18n.locale }}
|
||||
assert_equal '/account', Devise.mappings[:account].parsed_path
|
||||
assert_equal '/en/organizers', Devise.mappings[:manager].parsed_path
|
||||
ensure
|
||||
Devise.default_url_options {{ }}
|
||||
end
|
||||
end
|
||||
|
||||
test 'magic predicates' do
|
||||
|
||||
Reference in New Issue
Block a user