Skip to content

False negative for RSpec/RepeatedExampleGroupDescription #2021

Open
@ydakuka

Description

@ydakuka

Describe the solution you'd like

RSpec.describe Screenshots::CreateInteractor do
  context 'when the request is valid', use_vcr_cassette: 'screenshots/valid_request' do
    pending 'add something'
  end

  context 'when the request is valid', use_vcr_cassette: 'screenshots/invalid_request' do
    pending 'add something'
  end
end

RuboCop

ydakuka@yauhenid:~/Work/project$ rubocop -V
1.70.0 (using Parser 3.3.6.0, rubocop-ast 1.37.0, analyzing as Ruby 2.7, running on ruby 2.7.8) [x86_64-linux]
  - rubocop-capybara 2.21.0
  - rubocop-factory_bot 2.26.1
  - rubocop-performance 1.23.1
  - rubocop-rails 2.28.0
  - rubocop-rake 0.6.0
  - rubocop-rspec 3.3.0
  - rubocop-rspec_rails 2.30.0
  - rubocop-thread_safety 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions