Skip to content

Files

Latest commit

 

History

History
38 lines (28 loc) · 789 Bytes

RSpec-RepeatedDescription.md

File metadata and controls

38 lines (28 loc) · 789 Bytes

Pattern: Repeated description string in example group

Issue: -

Description

Checks for repeated description strings in example groups.

Examples

# bad
RSpec.describe User do
  it 'is valid' do
    # ...
  end

  it 'is valid' do
    # ...
  end
end

# good
RSpec.describe User do
  it 'is valid when first and last name are present' do
    # ...
  end

  it 'is valid when last name only is present' do
    # ...
  end
end

Further Reading