Fix invalid URLs in legacy integration specs

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/3421/head
Alex Coles 9 years ago
parent 87720d19ec
commit 0a802fb71d
  1. 4
      spec/legacy/integration/application_spec.rb
  2. 4
      spec/legacy/integration/lib/redmine/menu_manager_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

@ -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' } } }

Loading…
Cancel
Save