<h4>
<%= t "browse.version" %>
- #<%= link_to common_details.version, :controller => "old_#{@type.pluralize}", :action => :show, :version => common_details.version %>
+ #<%= link_to_unless_current common_details.version, :controller => "old_#{@type.pluralize}", :action => :show, :version => common_details.version %>
</h4>
<p class="fst-italic">
assert_response :success
assert_template "old_nodes/show"
assert_template :layout => "map"
+ assert_select "h4", /^Version/ do
+ assert_select "a[href='#{old_node_path node, 1}']", :count => 0
+ end
end
def test_not_found
assert_response :success
assert_template "old_relations/show"
assert_template :layout => "map"
+ assert_select "h4", /^Version/ do
+ assert_select "a[href='#{old_relation_path relation, 1}']", :count => 0
+ end
end
def test_visible_with_members
assert_response :success
assert_template "old_ways/show"
assert_template :layout => "map"
+ assert_select "h4", /^Version/ do
+ assert_select "a[href='#{old_way_path way, 1}']", :count => 0
+ end
end
def test_visible_with_shared_nodes