From 1fa341df1cfb4198ce3cd34190fa7de774c0d387 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 24 Jan 2012 18:47:38 +0000 Subject: Fixed links to versions anchors on the roadmap. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8700 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/versions_controller_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index 414e2fc72..9ba301bc5 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -42,6 +42,9 @@ class VersionsControllerTest < ActionController::TestCase assert !assigns(:versions).include?(Version.find(1)) # Context menu on issues assert_select "script", :text => Regexp.new(Regexp.escape("new ContextMenu('/issues/context_menu')")) + # Links to versions anchors + assert_tag 'a', :attributes => {:href => '#2.0'}, + :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}} # Links to completed versions in the sidebar assert_tag 'a', :attributes => {:href => '/versions/1'}, :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}} -- cgit v1.2.3