From d50d42bb4e6b1737447af92284868ab5829798d9 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 22 Jun 2025 14:33:00 +0300 Subject: [PATCH] Remove checks for absence of links to current element versions --- test/controllers/nodes_controller_test.rb | 1 - test/controllers/relations_controller_test.rb | 1 - test/controllers/ways_controller_test.rb | 1 - 3 files changed, 3 deletions(-) diff --git a/test/controllers/nodes_controller_test.rb b/test/controllers/nodes_controller_test.rb index 6db340c21..11c8f8d8e 100644 --- a/test/controllers/nodes_controller_test.rb +++ b/test/controllers/nodes_controller_test.rb @@ -18,7 +18,6 @@ class NodesControllerTest < ActionDispatch::IntegrationTest end assert_select ".secondary-actions a[href='#{api_node_path node}']", :count => 1 assert_select ".secondary-actions a[href='#{node_history_path node}']", :count => 1 - assert_select ".secondary-actions a[href='#{old_node_path node, 1}']", :count => 0 end def test_show_multiple_versions diff --git a/test/controllers/relations_controller_test.rb b/test/controllers/relations_controller_test.rb index 0f07a1a4a..71b12e099 100644 --- a/test/controllers/relations_controller_test.rb +++ b/test/controllers/relations_controller_test.rb @@ -18,7 +18,6 @@ class RelationsControllerTest < ActionDispatch::IntegrationTest end assert_select ".secondary-actions a[href='#{api_relation_path relation}']", :count => 1 assert_select ".secondary-actions a[href='#{relation_history_path relation}']", :count => 1 - assert_select ".secondary-actions a[href='#{old_relation_path relation, 1}']", :count => 0 end def test_show_multiple_versions diff --git a/test/controllers/ways_controller_test.rb b/test/controllers/ways_controller_test.rb index 5b80a070c..750f3f7ef 100644 --- a/test/controllers/ways_controller_test.rb +++ b/test/controllers/ways_controller_test.rb @@ -18,7 +18,6 @@ class WaysControllerTest < ActionDispatch::IntegrationTest end assert_select ".secondary-actions a[href='#{api_way_path way}']", :count => 1 assert_select ".secondary-actions a[href='#{way_history_path way}']", :count => 1 - assert_select ".secondary-actions a[href='#{old_way_path way, 1}']", :count => 0 end def test_show_multiple_versions -- 2.39.5