From 2d2acffede0717ac98927089935882d0517c7b2c Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Sun, 19 Sep 2021 00:18:42 -0700 Subject: [PATCH] Test helper find card by data --- spec/support/helpers/game_helpers.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/support/helpers/game_helpers.rb b/spec/support/helpers/game_helpers.rb index 7f7c46c..8a658de 100644 --- a/spec/support/helpers/game_helpers.rb +++ b/spec/support/helpers/game_helpers.rb @@ -33,7 +33,7 @@ module GameHelpers end def find_card card - find("[data-card-name='#{card.to_s}'] ~ img") + find("[data-card-name='#{card.to_s}']") end def cards_to_beat @@ -82,10 +82,6 @@ module Features return game end - def find_card card - find("[data-card-name='#{card.to_s}'] ~ img") - end - def cards_to_beat @cards = find("#cards-to-beat") if @cards