Commit 50c338b2 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Additional test for r1481.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1482 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9894a378
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment