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

Cop idea: the correct use of it and specify blocks. #1658

Closed
ydakuka opened this issue Jun 7, 2023 · 1 comment · Fixed by #1666
Closed

Cop idea: the correct use of it and specify blocks. #1658

ydakuka opened this issue Jun 7, 2023 · 1 comment · Fixed by #1666

Comments

@ydakuka
Copy link

ydakuka commented Jun 7, 2023

StyleGuide: https://rspec.rubystyle.guide/#it-and-specify

@ydakuka ydakuka changed the title New cop: the correct use of it and specify blocks. Cop idea: the correct use of it and specify blocks. Jun 7, 2023
@Drenmi
Copy link
Contributor

Drenmi commented Jun 10, 2023

Use specify if the example doesn’t have a description.

This one seems pretty straight-forward. Ignore for single line blocks and assertions starting with is_expected.

ydah added a commit that referenced this issue Jun 18, 2023
ydah added a commit that referenced this issue Jun 18, 2023
ydah added a commit that referenced this issue Jul 7, 2023
ydah added a commit that referenced this issue Jul 9, 2023
ydah added a commit that referenced this issue Jul 9, 2023
ydah added a commit that referenced this issue Jul 20, 2023
ydah added a commit that referenced this issue Jul 24, 2023
ydah added a commit that referenced this issue Feb 15, 2024
ydah added a commit that referenced this issue Feb 15, 2024
ydah added a commit that referenced this issue Feb 15, 2024
ydah added a commit that referenced this issue Feb 17, 2024
ydah added a commit that referenced this issue Feb 27, 2024
ydah added a commit that referenced this issue Feb 27, 2024
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this issue Mar 27, 2024
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this issue Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants