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

Run specs on all PRs (and fix a flaky spec) #8

Merged
merged 2 commits into from
Jun 7, 2022
Merged

Run specs on all PRs (and fix a flaky spec) #8

merged 2 commits into from
Jun 7, 2022

Conversation

duncanjbrown
Copy link
Contributor

No description provided.

@duncanjbrown duncanjbrown force-pushed the ci branch 3 times, most recently from 098b112 to 719f505 Compare May 20, 2022 11:50
Before this change, the descendant "Candidate" class would hang around
outside the spec, which caused an order dependent failure in
fields_spec.rb.

Explictly calling stub_const and/or declaring the descendant outside the
controller definition seems to force RSpec/Ruby to clean up the
ref after the test is run, and the order-dependent failure goes away.
@duncanjbrown duncanjbrown changed the title CI - WIP — don't merge Run specs on all PRs (and fix a flaky spec) May 20, 2022
@duncanjbrown duncanjbrown merged commit 52acbc5 into main Jun 7, 2022
@duncanjbrown duncanjbrown deleted the ci branch June 7, 2022 04:38
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