diff options
-rw-r--r-- | test/functional/welcome_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb index 3e1308ef1..df565a751 100644 --- a/test/functional/welcome_controller_test.rb +++ b/test/functional/welcome_controller_test.rb @@ -53,4 +53,11 @@ class WelcomeControllerTest < Test::Unit::TestCase get :index assert_equal :"zh-tw", @controller.current_language end + + def test_browser_language_alternate_not_valid + Setting.default_language = 'en' + @request.env['HTTP_ACCEPT_LANGUAGE'] = 'fr-CA' + get :index + assert_equal :fr, @controller.current_language + end end |