Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 406 Bytes

RSpec-VariableName.md

File metadata and controls

23 lines (15 loc) · 406 Bytes

Pattern: Malformed memoized helper name

Issue: -

Description

Checks that memoized helper names use the configured style.

Examples

# bad
let(:userName) { 'Adam' }
subject(:userName) { 'Adam' }

# good
let(:user_name) { 'Adam' }
subject(:user_name) { 'Adam' }

Further Reading