mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
properly change devise config in specs
This commit is contained in:
parent
7b66133861
commit
6d51e67fac
1 changed files with 5 additions and 2 deletions
|
@ -113,8 +113,11 @@ class HelpersTest < ActionController::TestCase
|
||||||
|
|
||||||
test 'navigational_formats not returning a wild card' do
|
test 'navigational_formats not returning a wild card' do
|
||||||
MyController.send(:public, :navigational_formats)
|
MyController.send(:public, :navigational_formats)
|
||||||
Devise.navigational_formats = [:"*/*", :html]
|
|
||||||
assert_not @controller.navigational_formats.include?(:"*/*")
|
swap Devise, :navigational_formats => ['*/*', :html] do
|
||||||
|
assert_not @controller.navigational_formats.include?("*/*")
|
||||||
|
end
|
||||||
|
|
||||||
MyController.send(:protected, :navigational_formats)
|
MyController.send(:protected, :navigational_formats)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue