RuboCop RSpec v1.0.rc1
Pre-release
Pre-release
- Update code to work with rubocop
>= 0.19. - Split
UnitSpecNamingcop intoRSpecDescribeClass,RSpecDescribeMethodandRSpecFileNameand enabled them all by default. - Add
RSpecExampleWordingcop to prevent to use of "should" at the beginning of the spec description. - Fix
RSpecFileNamecop for non-class specs. - Adapt
RSpecFileNamecop to common naming convention and skip spec with multiple top level describes. - Add
RSpecMultipleDescribescop to check for multiple top level describes. - Add
RSpecDescribedClasscop to promote the use ofdescribed_class. - Add
RSpecInstanceVariablecop to check for the usage of instance variables.
WARNING: Cop names are under flux and will likely change in the near future.
We're hoping to introduce namespaces into the mix.