Skip to content

Conversation

@larouxn
Copy link
Contributor

@larouxn larouxn commented Jun 8, 2025

What are you trying to accomplish?

Ensure the updated tests actually assert that all US states/territories (aside from UM) have an example city and zip. The tests currently appear to not be testing anything as assert_predicate does not appear to accept a block re: docs and the following warning which appears when running the tests:

/home/larouxn/src/github.com/larouxn/worldwide/test/worldwide/region_yml_consistency_test.rb:488: warning: the block passed to 'assert_predicate' defined at /home/larouxn/.gem/ruby/3.4.4/gems/minitest-5.25.5/lib/minitest/assertions.rb:391 may be ignored

What approach did you choose and why?

Broke down the assertions into one by one within a loop and added a skip for UM as it's an outlier.

What should reviewers focus on?

Are we okay with the method of skipping UM?

The impact of these changes

Tests actually assert what we want to assert.

Testing

With the updated tests but no UM skip.

Screenshot From 2025-06-08 18-37-14

With the updated test plus UM skip.

Screenshot From 2025-06-08 18-37-32

Checklist

  • I have added a CHANGELOG entry for this change (or determined that it isn't needed)

Determined not necessary as it's a developer facing change, not user facing.

@larouxn larouxn force-pushed the fix_region_yml_tests branch 2 times, most recently from c3cb644 to e5806dd Compare June 18, 2025 22:58
@larouxn larouxn force-pushed the fix_region_yml_tests branch from e5806dd to 1dfd184 Compare June 28, 2025 03:24
@larouxn larouxn force-pushed the fix_region_yml_tests branch from 1dfd184 to cb78b7e Compare August 24, 2025 21:39
@larouxn larouxn force-pushed the fix_region_yml_tests branch from cb78b7e to 03875bf Compare October 10, 2025 07:17
The tests currently appear to not be testing anything as assert_predicate does not appear to accept a block. As such the following warning appears when running the tests:

```console
/home/larouxn/src/github.com/larouxn/worldwide/test/worldwide/region_yml_consistency_test.rb:488: warning: the block passed to 'assert_predicate' defined at /home/larouxn/.gem/ruby/3.4.4/gems/minitest-5.25.5/lib/minitest/assertions.rb:391 may be ignored
```
@larouxn larouxn force-pushed the fix_region_yml_tests branch from 03875bf to 4734750 Compare January 3, 2026 19:06
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