Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v1.17.0
- Add
RSpec/Capybara
namespace including the first cop for feature specs:Capybara/FeatureMethods
. (@rspeicher) - Update to RuboCop 0.50.0. (@bquorning)
RuboCop RSpec v1.16.0
- Add
RSpec/FactoryGirl
namespace including the first cop for factories:FactoryGirl/DynamicAttributeDefinedStatically
. (@jonatas) - Add disabled by default
RSpec/AlignLeftLetBrace
. (@backus) - Add disabled by default
RSpec/AlignRightLetBrace
. (@backus) - Add
RSpec/LetBeforeExamples
cop. (@Darhazer) - Add
RSpec/MultipleSubjects
cop. (@backus) - Add
RSpec/ReturnFromStub
cop. (@Darhazer) - Add
RSpec/VoidExpect
cop. (@pocke) - Add
RSpec/InvalidPredicateMatcher
cop. (@pocke) - Change HookArgument cop to detect when hook has a receiver. (@pocke)
- Add
RSpec/PredicateMatcher
cop. (@pocke) - Add
RSpec/ExpectInHook
cop. (@pocke) RSpec/MultipleExpectations
now detects usage of expect_any_instance_of. (@Darhazer)RSpec/MultipleExpectations
now detects usage of is_expected. (@bmorrall)
RuboCop RSpec v1.15.1
- Fix the handling of various edge cases in the
RSpec/ExampleWording
cop, including one that would cause autocorrect to crash. (@dgollahon) - Fix
RSpec/IteratedExpectation
crashing when there is an assignment in the iteration. (@Darhazer) - Fix false positive in
RSpec/SingleArgumentMessageChain
cop when the single argument is a hash. (@Darhazer)
RuboCop RSpec v1.15.0
RuboCop RSpec v1.14.0
RuboCop RSpec v1.13.0
- Add repeated 'it' detection to
RSpec/ExampleWording
cop. (@dgollahon) - Add [observed_nesting/max_nesting] info to
RSpec/NestedGroups
messages. (@dgollahon) - Add
RSpec/ItBehavesLike
cop. (@dgollahon) - Add
RSpec/SharedContext
cop. (@Darhazer) Rspec/MultipleExpectations
: Count aggregate_failures block as single expectation. (@Darhazer)- Fix
ExpectActual
cop flaggingrspec-rails
routing specs. (@backus) - Fix
FilePath
cop not registering offenses for files likespec/blog/user.rb
when it should bespec/blog/user_spec.rb
. (@backus)
RuboCop RSpec v1.12.0
- Add
RSpec/InstanceSpy
cop. (@Darhazer) - Add
RSpec/BeforeAfterAll
for avoiding leaky global test setup. (@cfabianski)
RuboCop RSpec v1.11.0
RuboCop RSpec v1.10.0
- Fix false negative for
RSpec/MessageSpies
cop. (@onk) - Fix internal dependencies on RuboCop to be compatible with 0.47 release. (@backus)
- Add autocorrect support for
SingleArgumentMessageChain
cop. (@bquorning) - Rename
NestedGroups
' configuration key fromMaxNesting
toMax
in order to be consistent with other cop configuration. (@backus) - Add
RepeatedExample
cop for detecting repeated examples within example groups. (@backus) - Add
ScatteredSetup
cop for enforcing that only onebefore
,around
, andafter
hook are used per example group scope. (@backus) - Add
ExpectOutput
cop for recommendingexpect { ... }.to output(...).to_stdout
. (@backus)