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

Spec refactoring #8069

Merged
merged 4 commits into from May 31, 2020
Merged

Spec refactoring #8069

merged 4 commits into from May 31, 2020

Conversation

marcandre
Copy link
Contributor

This PR adds a new functionality: expect_offense can do some text replacements (see style/redundant_exception_spec.rb)

It refactors slightly other specs. This is a prelude to #7868

It tests the same thing as the previous spec; their success is not independent.
See [rubocop#8016]
This spec would fail with the modern implementation...
@bbatsov
Copy link
Collaborator

bbatsov commented May 31, 2020

Great work! Probably we should document the specs API somewhere in the dev docs as well.

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.

None yet

2 participants