1
0
Fork 0
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:
Vasiliy Ermolovich 2014-01-04 19:19:13 +03:00
parent 7b66133861
commit 6d51e67fac

View file

@ -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