- Handle unknown HTTP status codes for
RSpecRails/HttpStatus
cop. (@viralpraxis)
- Fix an runtime error for rubocop-rspec +3.0. (@bquorning)
- Bump RuboCop requirement to +1.61. (@ydah)
- Support
AutoCorrect: contextual
option for LSP. (@ydah)
- Fix an error for Ambiguous cop name
RSpec/Rails/HttpStatus
. (@ydah)
- Fix a
NameError
by Cross-Referencing. (@ydah) - Fix an error for
RSpecRails/HttpStatus
when no rack gem is loaded with rubocop-rspec. (@ydah) - Fix an error for unrecognized cop or department
RSpecRails/HttpStatus
when also using rubocop-rails. (@ydah)
- Implicit dependency on RuboCop RSpec. Note that if you use rubocop-rspec_rails, you must also explicitly add rubocop-rspec to the Gemfile, because you are changing to an implicit dependency on RuboCop RSpec. (@ydah)
- Extracted from
rubocop-rspec
into a separate repository. (@ydah)
Previously (see rubocop-rspec's changelist for details)
- Add support for
assert_true
,assert_false
,assert_not_equal
,assert_not_nil
,*_empty
,*_predicate
,*_kind_of
,*_in_delta
,*_match
,*_instance_of
and*_includes
assertions inRSpec/Rails/MinitestAssertions
. (@ydah, @G-Rath) - Add configuration option
ResponseMethods
toRSpec/Rails/HaveHttpStatus
. (@ydah) - Add support single quoted string and percent string and heredoc for
RSpec/Rails/HttpStatus
. (@ydah) - Add support
RSpec/Rails/HttpStatus
whenhave_http_status
with string argument. (@ydah) - Mark to
Safe: false
forRSpec/Rails/NegationBeValid
cop. (@ydah) - Add new
RSpec/Rails/NegationBeValid
cop. (@ydah) - Fix a false negative for
RSpec/ExcessiveDocstringSpacing
when finds description with em space. (@ydah) - Fix a false positive for
RSpec/EmptyExampleGroup
when example group with examples defined inif
branch inside iterator. (@ydah) - Update the message output of
RSpec/ExpectActual
to include the word 'value'. (@corydiamand) - Fix a false negative for
RSpec/Pending
whenit
without body. (@ydah) - Add new
RSpec/ReceiveMessages
cop. (@ydah) - Change default.yml path to use
**/spec/*
instead ofspec/*
. (@ydah) - Add
AllowedIdentifiers
andAllowedPatterns
configuration option toRSpec/IndexedLet
. (@ydah) - Fix
RSpec/NamedSubject
when block has no body. (@splattael) - Fix
RSpec/LetBeforeExamples
autocorrect incompatible withRSpec/ScatteredLet
autocorrect. (@ydah) - Update
RSpec/Focus
to supportshared_context
andshared_examples
. (@tmaier) - Fix an error for
RSpec/Rails/HaveHttpStatus
with comparison with strings containing non-numeric characters. (@ydah) - Add support
be_status
style forRSpec/Rails/HttpStatus
. (@ydah) - Fix order of expected and actual in correction for
RSpec/Rails/MinitestAssertions
. (@mvz) - Add
RSpec/Rails/TravelAround
cop. (@r7kamura) - Add new
RSpec/Rails/MinitestAssertions
cop. (@ydah) - Improved processing speed for
RSpec/Be
,RSpec/ExpectActual
,RSpec/ImplicitExpect
,RSpec/MessageSpies
,RSpec/PredicateMatcher
andRSpec/Rails/HaveHttpStatus
. (@ydah) - Fix an error for
RSpec/Rails/InferredSpecType
with redundant type before other Hash metadata. (@ydah) - Add
RSpec/Rails/InferredSpecType
cop. (@r7kamura) - Add new
RSpec/Rails/HaveHttpStatus
cop. (@akiomik) - Exclude unrelated Rails directories from
RSpec/DescribeClass
. (@MothOnMars) - Add
RSpec/Rails/AvoidSetupHook
cop. (@paydaylight) - Change namespace of several cops (
Capybara/*
->RSpec/Capybara/*
,FactoryBot/*
->RSpec/FactoryBot/*
,Rails/*
->RSpec/Rails/*
). (@pirj, @bquorning) - The
Rails/HttpStatus
cop is unavailable if therack
gem cannot be loaded. (@bquorning) - Fix
Rails/HttpStatus
not working with custom HTTP status codes. (@bquorning) - Add
RSpec/Rails/HttpStatus
cop to enforce consistent usage of the status format (numeric or symbolic). (@anthony-robin, @jojos003)