summaryrefslogtreecommitdiffstats
path: root/test/functional/welcome_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-30 18:42:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-30 18:42:56 +0000
commit50c338b229eddd9772974bf64071c0b330ffb2c6 (patch)
tree5a5135b4a12d15d64950f57b969c2b231518282b /test/functional/welcome_controller_test.rb
parent9894a3781e9cc7fc295f7fa7133fe951ca843e51 (diff)
downloadredmine-50c338b229eddd9772974bf64071c0b330ffb2c6.tar.gz
redmine-50c338b229eddd9772974bf64071c0b330ffb2c6.zip
Additional test for r1481.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1482 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/welcome_controller_test.rb')
-rw-r--r--test/functional/welcome_controller_test.rb7
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