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

fix(Stub): align #destroyed with #new_record/#persisted #1576

Merged

Conversation

bf4
Copy link
Contributor

@bf4 bf4 commented May 25, 2023

I was surprised to find that #destroyed? returns nil
instead of false when I build_stubbed. I don't see
a reason for it in the commit history nor in Rails,
so I thought it was fair game for this PR.

@bf4 bf4 requested a review from mike-burns as a code owner May 25, 2023 02:36
@bf4 bf4 force-pushed the align_destroyed_stub_with_active_record branch from 47d425a to 82d737a Compare May 25, 2023 02:37
@mike-burns mike-burns force-pushed the align_destroyed_stub_with_active_record branch from 82d737a to 6486fce Compare September 1, 2023 11:55
@mike-burns mike-burns merged commit 6486fce into thoughtbot:main Sep 1, 2023
@mike-burns
Copy link
Contributor

Thanks for aligning it with ActiveRecord!

@bf4 bf4 deleted the align_destroyed_stub_with_active_record branch September 1, 2023 12:12
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.

2 participants