Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v1.8.0
- Optionally ignore method names in the
describe
argument when running theFilePath
cop. (@bquorning) - Fix regression in how
FilePath
converts alphanumeric class names into paths. (@bquorning) - Add
ImplicitExpect
cop for enforcingshould
vs.is_expected.to
. (@backus) - Disable
MessageExpectation
cop in the default configuration. (@bquorning)
RuboCop RSpec v1.7.0
- Add support for checking all example groups with
ExampleLength
. (@backus) - Add support for checking shared example groups for
DescribedClass
. (@backus) - Add support for checking
its
from rspec-its. (@backus) - Add
EmptyExampleGroup
cop for detectingdescribe
s andcontext
s without any tests inside. (@backus) - Add
CustomIncludeMethods
configuration option forEmptyExampleGroup
. (@backus) - Add
NestedGroups
cop for detecting excessive example group nesting. (@backus) - Add
MaxNesting
configuration option forNestedGroups
cop. (@backus) - Add
ExpectActual
cop for detecting literal values withinexpect(...)
. (@backus) - Add
MultipleExpectations
cop for detecting multipleexpect(...)
calls within one example. (@backus) - Add
Max
configuration option forMultipleExpectations
. (@backus) - Add
SubjectStub
cop for testing stubbed test subjects. (@backus) - Add
LetSetup
cop for detecting cases wherelet!
is used for test setup. (@backus) - Change all cops to only inspect files with names following rspec convention (
*/spec/*
and/or_spec.rb
). (@backus) - Add
AllCops/RSpec
configuration option for specifying custom spec file patterns. (@backus) - Add
AssignmentOnly
configuration option forRSpec/InstanceVariable
cop. (@backus) - Add
BeEql
cop which looks for expectations that can usebe(...)
instead ofeql(...)
. (@backus) - Add autocorrect support for
BeEql
cop. (@backus) - Add
MessageExpectation
cop for enforcing consistent style of eitherexpect(...).to receive
orallow(...).to receive
. (@backus) - Add
MessageChain
cop. (@bquorning)
RuboCop RSpec v1.6.0
- Add
SkipBlocks
option forDescribedClass
cop. (@backus)
RuboCop RSpec v1.5.3
- Add
RSpec/NamedSubject
cop. (@backus)
RuboCop RSpec v1.5.2
RuboCop RSpec v1.5.1
RuboCop RSpec v1.5.0
- Expand
VerifiedDoubles
cop to check forspy
as well asdouble
. (@andyw8) - Enable
VerifiedDoubles
cop by default. (@andyw8) - Add
IgnoreSymbolicNames
option forVerifiedDoubles
cop. (@andyw8) - Add
RSpec::ExampleLength
cop. (@andyw8) - Handle alphanumeric class names in
FilePath
cop. (@andyw8) - Skip
DescribeClass
cop for view specs. (@andyw8) - Skip
FilePath
cop for Rails routing specs. (@andyw8) - Add cop to check for focused specs. (@renanborgescampos, @jaredmoody)
- Clean-up
RSpec::NotToNot
to use same configuration semantics as other Rubocop cops, add autocorrect support forRSpec::NotToNot
. (@baberthal) - Update to rubocop 0.40.0. (@nijikon)
RuboCop RSpec v1.4.1
RuboCop RSpec v1.4.0
- Update to rubocop 0.37.2. (@nijikon)
- Update ruby versions we test against. (@nijikon)
- Add RSpec::NotToNot cop. (@miguelfteixeira)
- Add Rspec/AnyInstance cop. (@mlarraz)
RuboCop RSpec v1.3.1
- Fix auto correction issue - syntax had changed in RuboCop v0.31
- Add RuboCop clone to vendor folder - see #39 for details
Thanks to @bquorning