summaryrefslogtreecommitdiffstats
path: root/test/integration/application_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-21 15:05:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-21 15:05:18 +0000
commit7296b569a3de2143d634f731b2ce1f18fbf08b0a (patch)
tree9434ae922a2ed983635817ebdc0841bec79b9664 /test/integration/application_test.rb
parent7ac90722707d460934cba31452c138b614cfa400 (diff)
downloadredmine-7296b569a3de2143d634f731b2ce1f18fbf08b0a.tar.gz
redmine-7296b569a3de2143d634f731b2ce1f18fbf08b0a.zip
Leading slash required with Rails 4.2.
git-svn-id: http://svn.redmine.org/redmine/trunk@13783 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/application_test.rb')
-rw-r--r--test/integration/application_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb
index 5b8368732..f7213a3ab 100644
--- a/test/integration/application_test.rb
+++ b/test/integration/application_test.rb
@@ -32,21 +32,21 @@ class ApplicationTest < Redmine::IntegrationTest
Setting.default_language = 'en'
# a french user
- get 'projects', { }, 'HTTP_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_select 'h2', :text => 'Projets'
assert_equal :fr, current_language
assert_select "html[lang=?]", "fr"
# then an italien user
- get 'projects', { }, 'HTTP_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_select 'h2', :text => 'Progetti'
assert_equal :it, current_language
assert_select "html[lang=?]", "it"
# not a supported language: default language should be used
- get 'projects', { }, 'HTTP_ACCEPT_LANGUAGE' => 'zz'
+ get '/projects', { }, 'HTTP_ACCEPT_LANGUAGE' => 'zz'
assert_response :success
assert_select 'h2', :text => 'Projects'
assert_select "html[lang=?]", "en"
@@ -54,11 +54,11 @@ class ApplicationTest < Redmine::IntegrationTest
def test_token_based_access_should_not_start_session
# issue of a private project
- get 'issues/4.atom'
+ get '/issues/4.atom'
assert_response 302
rss_key = User.find(2).rss_key
- get "issues/4.atom?key=#{rss_key}"
+ get "/issues/4.atom?key=#{rss_key}"
assert_response 200
assert_nil session[:user_id]
end
@@ -80,7 +80,7 @@ class ApplicationTest < Redmine::IntegrationTest
def test_localization_should_be_set_correctly_on_invalid_token
ActionController::Base.allow_forgery_protection = true
Setting.default_language = 'en'
- post 'issues', { }, 'HTTP_ACCEPT_LANGUAGE' => 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'
+ post '/issues', { }, 'HTTP_ACCEPT_LANGUAGE' => 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'
assert_response 422
assert_equal :fr, current_language
assert_select "html[lang=?]", "fr"