Skip to content

Files

Latest commit

 

History

History
43 lines (28 loc) · 817 Bytes

RSpec-EmptyLineAfterHook.md

File metadata and controls

43 lines (28 loc) · 817 Bytes

Pattern: Missing empty line after hook

Issue: -

Description

Checks if there is an empty line after hook blocks.

Examples

# bad
before { do_something }
it { does_something }

# bad
after { do_something }
it { does_something }

# bad
around { |test| test.run }
it { does_something }

# good
before { do_something }

it { does_something }

# good
after { do_something }

it { does_something }

# good
around { |test| test.run }

it { does_something }

Further Reading