@@ -49,7 +49,7 | |||
|
49 | 49 | |
|
50 | 50 | <h3><%= l(:label_version_plural) %></h3> |
|
51 | 51 | <% @versions.each do |version| %> |
|
52 |
<%= link_to format_version_name(version), |
|
|
52 | <%= link_to format_version_name(version), "##{anchor(version.name)}" %><br /> | |
|
53 | 53 | <% end %> |
|
54 | 54 | <% if @completed_versions.present? %> |
|
55 | 55 | <p> |
@@ -42,6 +42,9 class VersionsControllerTest < ActionController::TestCase | |||
|
42 | 42 | assert !assigns(:versions).include?(Version.find(1)) |
|
43 | 43 | # Context menu on issues |
|
44 | 44 | assert_select "script", :text => Regexp.new(Regexp.escape("new ContextMenu('/issues/context_menu')")) |
|
45 | # Links to versions anchors | |
|
46 | assert_tag 'a', :attributes => {:href => '#2.0'}, | |
|
47 | :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}} | |
|
45 | 48 | # Links to completed versions in the sidebar |
|
46 | 49 | assert_tag 'a', :attributes => {:href => '/versions/1'}, |
|
47 | 50 | :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}} |
General Comments 0
You need to be logged in to leave comments.
Login now