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

Rails 5.2 specs - Remove calling run_callbacks commit spec workarounds #378

Conversation

yuenmichelle1
Copy link
Collaborator

See: https://stackoverflow.com/a/30901628/15768801

In Rails versions < 5, in order to test after_commit callbacks, one would have to actually run the commit callback via run_callbacks. This issue gets fixed in Rails 5+.

@yuenmichelle1 yuenmichelle1 marked this pull request as ready for review October 23, 2024 00:18
@yuenmichelle1 yuenmichelle1 merged commit 3b7f876 into master Oct 23, 2024
2 checks passed
@yuenmichelle1 yuenmichelle1 deleted the rails-5.2-spec-fixes-ensure-creation-for-after_commit-callback-specs branch October 31, 2024 13:40
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