Skip to content

Commit

Permalink
pass on hash args to have_selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts committed Sep 29, 2023
1 parent a324c0b commit 835f7e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/finders/test_selector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def within_test_selector(value, **, &)
end

# expect(page).to have_test_selector('foo')
def have_test_selector(value)
have_selector(test_selector(value))
def have_test_selector(value, **)
have_selector(test_selector(value), **)
end
end

Expand Down

0 comments on commit 835f7e8

Please sign in to comment.