rubocop-rspec
rubocop-rspec copied to clipboard
Code style checking for RSpec files
## Background Often each spec file has a `require 'spec_helper'` as its first line. This is redundant if you have a `.rspec` file that looks like this: ``` --require rails_helper...
see: https://github.com/rubocop/rubocop-rspec/pull/1972#discussion_r1808522184 ______________________________________________________________________ Before submitting the PR make sure the following are checked: - [x] Feature branch is up-to-date with `master` (if not - rebase it). - [x] Squashed related...
This PR obsoletes our newly introduced `StringAsInstanceDoubleConstant` in favor of `VerifiedDoubleReference`. This changes `VerifiedDoubleReference` to no longer support string style, as string references are not verifying when the class has...
This PR completes branch coverage for `VoidExpect`. This PR copies the `inside_example?` method and re-uses it here to get more coherent behavior from the VoidExpect cop. Note that if we...
When I run the autocorrect for `RSpec/StringAsInstanceDoubleConstant`, it just changes the string to a constant. However, this constant doesn't exist. It would be better to just say it's not autocorrectable,...
In this PR, we add a deprecation message for `top_level_group?`, which has no callers in current `Rubocop/RSpec`. `top_level_group?` was confirmed unused by @bquorning here: * https://github.com/rubocop/rubocop-rspec/pull/1957#issuecomment-2370935206 * code change: https://github.com/rubocop/rubocop-rspec/pull/977/files#diff-538fd5bdf99dca6200224146c399b06a85bc9297598c1c4e71e0c9eaead8770bL15...
Copied from https://github.com/rubocop/rubocop-capybara/pull/112 ______________________________________________________________________ Before submitting the PR make sure the following are checked: - [x] Feature branch is up-to-date with `master` (if not - rebase it). - [x] Squashed...
Require full line coverage Depends on both: * https://github.com/rubocop/rubocop-rspec/pull/1970 and * https://github.com/rubocop/rubocop-rspec/pull/1976 ______________________________________________________________________ Before submitting the PR make sure the following are checked: - [x] Feature branch is up-to-date with...