Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change association behavior to return nils if records cannot be found #60

Merged
merged 2 commits into from
May 17, 2024

Conversation

mnelson
Copy link
Collaborator

@mnelson mnelson commented May 17, 2024

No description provided.

@@ -335,5 +335,15 @@ def test_groups_are_preserved_to_association_components
assert_equal({}, op.without_info_params)
end

def test_find_by_is_used_if_raise_on_miss_is_false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have coverage of the opposite? i looked quick and didn't see anything ad-hoc
mainly to make sure that this change (or future) don't break that behavior

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other tests in here that use set expectations on find_by!() usage

@mnelson mnelson merged commit 2f54d06 into main May 17, 2024
4 checks passed
@mnelson mnelson deleted the association-find-by branch May 17, 2024 17:19
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.

3 participants