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 flaky variant_override spec #5737

Conversation

Matt-Yorkley
Copy link
Contributor

@Matt-Yorkley Matt-Yorkley commented Jul 6, 2020

What? Why?

Closes #5735

It looks like #preload on associated objects doesn't apply the soft-deleted scopes nicely, but #includes might work better.

Reference: ActsAsParanoid/acts_as_paranoid#37

What should we test?

Less flaky build...

Release notes

Improved flaky variant_override spec

@Matt-Yorkley Matt-Yorkley self-assigned this Jul 6, 2020
@Matt-Yorkley Matt-Yorkley force-pushed the flaky-spec-variant-overrides branch 2 times, most recently from e3fbec1 to 6e7d2f0 Compare July 7, 2020 08:57
It looks like #preload doesn't work nicely on associated objects with the acts_as_paranoid gem, but #includes might work better?
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.

[Flaky spec] spec/models/variant_override_spec.rb:36
1 participant