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

🧹 Furniture: Appease the Fuzz #1211

Merged
merged 1 commit into from
Mar 11, 2023
Merged

🧹 Furniture: Appease the Fuzz #1211

merged 1 commit into from
Mar 11, 2023

Conversation

zspencer
Copy link
Member

I don't really like the direction this pushes specs, but I can live with it.

In particular, a single assert per request/response seems... excruciatingly slow.

But there are other mechanisms we can explore to mitigate that as it gets out of hand.

@zspencer zspencer requested review from anaulin and a team March 11, 2023 14:47
- #1209 (comment)
- #709

I don't really like the direction this pushes specs, but I can live with
it.

In particular, a single assert per request/response seems...
excruciatingly slow.

But there are other mechanisms we can explore to mitigate that as it
gets out of hand.
Copy link
Member

@anaulin anaulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

I am also not fond of the "one assert per case" rule, and would be in favor of simply disabling it in our settings (which I know is a little bit against the whole point of using standard, but I think for Rspec-specific rules like this is justified).

@zspencer
Copy link
Member Author

I would be ecstatic if I can have my multi-expect it's again. standard doesn't cover rubocop-rspec, AFAIK so I don't think it's unreasonable for us to tweak that.

@zspencer zspencer merged commit 325dbcd into main Mar 11, 2023
@zspencer zspencer deleted the furniture/rubocop-todos branch March 11, 2023 22:39
@anaulin
Copy link
Member

anaulin commented Mar 12, 2023

I went to disable that particular cop and discovered that it is already disabled -- you disabled it 4 months ago: https://github.com/zinc-collective/convene/blame/main/.rubocop.yml#L19-L20

I reverted your commit locally and I didn't see any warnings for multiple expectations. 🤷🏼‍♀️

@zspencer
Copy link
Member Author

Yea, I think it was the "Number of Lines per Spec" cop... I just didn't read.

@zspencer zspencer added the 🧹 refactor Includes non-behavioral changes label Apr 8, 2023
@zspencer zspencer added this to the 1.0 - Andromeda milestone May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧹 refactor Includes non-behavioral changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants