Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 910 Bytes

RSpec-ContextWording.md

File metadata and controls

44 lines (31 loc) · 910 Bytes

Pattern: Malformed context block description

Issue: -

Description

context block descriptions should start with 'when', or 'with'.

'without' Prefixes: - when - with - without - if

Examples

Prefixes configuration option, defaults: 'when', 'with', and

# bad
context 'the display name not present' do
  # ...
end

# good
context 'when the display name is not present' do
  # ...
end

Configurable attributes

Name Default value Configurable values
Prefixes when, with, without Array

Further Reading