Skip to content

Files

Latest commit

 

History

History
39 lines (26 loc) · 943 Bytes

RSpec-ItBehavesLike.md

File metadata and controls

39 lines (26 loc) · 943 Bytes

Pattern: Inconsistent use of it_behaves_like/it_should_behave_like

Issue: -

Description

Checks that only one it_behaves_like style is used.

Examples

when configuration is EnforcedStyle: it_behaves_like

# bad
it_should_behave_like 'a foo'

# good
it_behaves_like 'a foo'

when configuration is EnforcedStyle: it_should_behave_like

# bad
it_behaves_like 'a foo'

# good
it_should_behave_like 'a foo'

Configurable attributes

Name Default value Configurable values
EnforcedStyle it_behaves_like it_behaves_like, it_should_behave_like

Further Reading