diff --git a/test/controllers/observations_controller/observations_controller_show_test.rb b/test/controllers/observations_controller/observations_controller_show_test.rb index 2dcf866bdb..469cfa7a2c 100644 --- a/test/controllers/observations_controller/observations_controller_show_test.rb +++ b/test/controllers/observations_controller/observations_controller_show_test.rb @@ -298,10 +298,6 @@ def test_show_observation_edit_links get(:show, params: { id: obs.id }) assert_select("a:match('href',?)", edit_observation_path(obs.id), count: 0) assert_select(".destroy_observation_link_#{obs.id}", count: 0) - assert_select("a:match('href',?)", - new_image_for_observation_path(obs.id), count: 0) - assert_select("a:match('href',?)", - remove_images_from_observation_path(obs.id), count: 0) assert_select("a:match('href',?)", reuse_images_for_observation_path(obs.id), count: 0) get(:edit, params: { id: obs.id }) @@ -314,10 +310,6 @@ def test_show_observation_edit_links assert_select("a[href=?]", edit_observation_path(obs.id), minimum: 1) # Destroy button is in a form, not a link_to assert_select(".destroy_observation_link_#{obs.id}", minimum: 1) - assert_select("a[href=?]", - new_image_for_observation_path(obs.id), minimum: 1) - assert_select("a[href=?]", - remove_images_from_observation_path(obs.id), minimum: 1) assert_select("a[href=?]", reuse_images_for_observation_path(obs.id), minimum: 1) get(:edit, params: { id: obs.id }) @@ -328,10 +320,6 @@ def test_show_observation_edit_links assert_select("a[href=?]", edit_observation_path(obs.id), minimum: 1) # Destroy button is in a form, not a link_to assert_select(".destroy_observation_link_#{obs.id}", minimum: 1) - assert_select("a[href=?]", - new_image_for_observation_path(obs.id), minimum: 1) - assert_select("a[href=?]", - remove_images_from_observation_path(obs.id), minimum: 1) assert_select("a[href=?]", reuse_images_for_observation_path(obs.id), minimum: 1) get(:edit, params: { id: obs.id })