class RuboCop::Cop::InternalAffairs::ExampleDescription

Checks that RSpec examples that use ‘expects_offense` or `expects_no_offenses` do not have conflicting descriptions.

@example

# bad
it 'does not register an offense' do
  expect_offense('...')
end

it 'registers an offense' do
  expect_no_offenses('...')
end

# good
it 'registers an offense' do
  expect_offense('...')
end

it 'does not register an offense' do
  expect_no_offenses('...')
end