Skip to content

Commit

Permalink
Update observations_controller_show_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Aug 20, 2024
1 parent 251e523 commit 942cd0e
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand All @@ -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 })
Expand All @@ -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 })
Expand Down

0 comments on commit 942cd0e

Please sign in to comment.