Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 427 Bytes

RSpec-VariableDefinition.md

File metadata and controls

23 lines (15 loc) · 427 Bytes

Pattern: Malformed memoized helper definition

Issue: -

Description

Checks that memoized helpers names are symbols or strings.

Examples

# bad
let('user_name') { 'Adam' }
subject('user') { create_user }

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

Further Reading