1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Fixed a test after changing links to turbo

This commit is contained in:
2025-11-11 21:55:36 -05:00
parent 793a9e3ecc
commit af2fc3feba

View File

@@ -357,7 +357,7 @@ Some Guy
@school.wrestlers.each do |wrestler|
# Check only for the DELETE link, specifying 'data-method="delete"' to exclude profile links
assert_select "a[href=?][data-method=delete]", wrestler_path(wrestler), count: 1
assert_select "a[href=?][data-turbo-method=delete]", wrestler_path(wrestler), count: 1
# Check edit link
assert_select "a[href=?]", edit_wrestler_path(wrestler), count: 1