]> source.dussan.org Git - redmine.git/commitdiff
Additional test for r1481.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 May 2008 18:42:56 +0000 (18:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 May 2008 18:42:56 +0000 (18:42 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1482 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/welcome_controller_test.rb

index 3e1308ef1333e24cbd49da8f27150dca19604c53..df565a7514f7c36caeac1c31a51672a219421b9e 100644 (file)
@@ -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