summaryrefslogtreecommitdiffstats
path: root/test/integration/application_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-25 16:31:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-25 16:31:13 +0000
commit62c8ad4df45a0ccb4ad08b1d8f38aeb609847442 (patch)
treebd17cf80c0682132437cd9d76eea99567f77e5fc /test/integration/application_test.rb
parent888287c60284d7c3e81a35500575bfcc66ab3657 (diff)
downloadredmine-62c8ad4df45a0ccb4ad08b1d8f38aeb609847442.tar.gz
redmine-62c8ad4df45a0ccb4ad08b1d8f38aeb609847442.zip
Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9006 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/application_test.rb')
-rw-r--r--test/integration/application_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb
index 38474d550..faf0a034e 100644
--- a/test/integration/application_test.rb
+++ b/test/integration/application_test.rb
@@ -33,19 +33,19 @@ class ApplicationTest < ActionController::IntegrationTest
Setting.default_language = 'en'
# a french user
- get 'projects', { }, 'Accept-Language' => 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'
+ get 'projects', { }, 'HTTP_ACCEPT_LANGUAGE' => 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'
assert_response :success
assert_tag :tag => 'h2', :content => 'Projets'
assert_equal :fr, current_language
# then an italien user
- get 'projects', { }, 'Accept-Language' => 'it;q=0.8,en-us;q=0.5,en;q=0.3'
+ get 'projects', { }, 'HTTP_ACCEPT_LANGUAGE' => 'it;q=0.8,en-us;q=0.5,en;q=0.3'
assert_response :success
assert_tag :tag => 'h2', :content => 'Progetti'
assert_equal :it, current_language
# not a supported language: default language should be used
- get 'projects', { }, 'Accept-Language' => 'zz'
+ get 'projects', { }, 'HTTP_ACCEPT_LANGUAGE' => 'zz'
assert_response :success
assert_tag :tag => 'h2', :content => 'Projects'
end