Skip to content

Conversation

@Jealrock
Copy link

@Jealrock Jealrock commented Oct 6, 2025

When calling assert_*_of_selectors on self in minitest the kwargs get pushed to args.

To reproduce replace assert_all_of_selectors(:css, 'select#form_other_title', 'input#form_last_name') with assert_all_of_selectors(:css, 'select#form_other_title', "input#form_super_secret", visible: false) in minitest_spec.rb.

The fix is to just use the right generator method in minitest.rb

@Jealrock Jealrock changed the title Fix kwargs in *_of_selectors methods in minitest Fix kwargs in assert_*_of_selectors methods in minitest Oct 6, 2025
@Jealrock Jealrock force-pushed the fix-kwargs-in-multiple-selector-asserts branch from 582d975 to a8d2060 Compare October 6, 2025 21:09
@Jealrock Jealrock force-pushed the fix-kwargs-in-multiple-selector-asserts branch from a8d2060 to ccbb27f Compare October 6, 2025 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant