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

Does it make sense to specify the controller spec and request spec paths for Include in RSpec/Rails/HaveHttpStatuscop? #4

Open
ydah opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ydah
Copy link
Member

ydah commented Mar 27, 2024

Does it make sense to specify the controller spec and request spec paths for Include in RSpec/Rails/HaveHttpStatuscop?

RSpec/Rails/HaveHttpStatus:
  Description: Checks that tests use `have_http_status` instead of equality matchers.
  Enabled: pending
  ResponseMethods:
    - response
    - last_response
+  Include:
+    - "**/spec/controllers/**/*"
+    - "**/spec/requests/**/*"
  SafeAutoCorrect: false
  VersionAdded: '2.12'
  VersionChanged: '2.27'
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HaveHttpStatus
@ydah ydah transferred this issue from rubocop/rubocop-rspec Mar 29, 2024
@ydah ydah added the enhancement New feature or request label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant