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

Set up Rubocop, run it in CI #9

Merged
merged 3 commits into from
Jun 7, 2022
Merged

Set up Rubocop, run it in CI #9

merged 3 commits into from
Jun 7, 2022

Conversation

duncanjbrown
Copy link
Contributor

🔴 Depends on #8, merge that first!

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 force-pushed the rubocop branch 3 times, most recently from e89437e to ceb48a1 Compare May 20, 2022 13:42
@duncanjbrown duncanjbrown merged commit 106a14f into main Jun 7, 2022
@duncanjbrown duncanjbrown deleted the rubocop 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