diff --git a/spec/legacy/integration/application_spec.rb b/spec/legacy/integration/application_spec.rb index 12edbb3426..77d63e676b 100644 --- a/spec/legacy/integration/application_spec.rb +++ b/spec/legacy/integration/application_spec.rb @@ -44,13 +44,13 @@ describe 'Application' do Setting.default_language = 'en' # a french user - get 'projects', {}, 'HTTP_ACCEPT_LANGUAGE' => 'de,de-de;q=0.8,en-us;q=0.5,en;q=0.3' + get '/projects', {}, 'HTTP_ACCEPT_LANGUAGE' => 'de,de-de;q=0.8,en-us;q=0.5,en;q=0.3' assert_response :success assert_tag tag: 'h2', content: 'Projekte' assert_equal :de, current_language # 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_tag tag: 'h2', content: 'Projects' end diff --git a/spec/legacy/integration/lib/redmine/menu_manager_spec.rb b/spec/legacy/integration/lib/redmine/menu_manager_spec.rb index 62d17c96d8..9d74f5f0f5 100644 --- a/spec/legacy/integration/lib/redmine/menu_manager_spec.rb +++ b/spec/legacy/integration/lib/redmine/menu_manager_spec.rb @@ -41,7 +41,7 @@ describe 'MenuManager' do it 'project menu with specific locale' do Setting.available_languages = [:de, :en] - get 'projects/ecookbook', {}, 'HTTP_ACCEPT_LANGUAGE' => 'de,de-de;q=0.8,en-us;q=0.5,en;q=0.3' + get '/projects/ecookbook', {}, 'HTTP_ACCEPT_LANGUAGE' => 'de,de-de;q=0.8,en-us;q=0.5,en;q=0.3' assert_tag :div, attributes: { id: 'main-menu' }, descendant: { tag: 'li', child: { tag: 'a', content: ll('de', :label_activity), @@ -62,7 +62,7 @@ describe 'MenuManager' do menu.push :hello, { controller: 'projects', action: 'show' }, caption: Proc.new { |p| p.name.upcase }, after: :bar end - get 'projects/ecookbook' + get '/projects/ecookbook' assert_tag :div, attributes: { id: 'main-menu' }, descendant: { tag: 'li', child: { tag: 'a', content: 'Foo', attributes: { class: 'foo-menu-item ellipsis' } } }