Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 576 Bytes

RSpec-SpecFilePathFormat.md

File metadata and controls

24 lines (16 loc) · 576 Bytes

Pattern: Malformed spec file path

Issue: -

Description

Checks that spec file paths are consistent and well-formed.

Examples

# bad
whatever_spec.rb         # describe MyClass
my_class_spec.rb         # describe MyClass, '#method'

# good
my_class_spec.rb         # describe MyClass
my_class_method_spec.rb  # describe MyClass, '#method'
my_class/method_spec.rb  # describe MyClass, '#method'

Further Reading