Releases: rubocop/rubocop-rspec
Releases · rubocop/rubocop-rspec
RuboCop RSpec v2.17.1
- Fix a false negative for
RSpec/Pending
when using skipped in metadata is multiline string. (@ydah) - Fix a false positive for
RSpec/NoExpectationExample
when using skipped in metadata is multiline string. (@ydah) - Fix a false positive for
RSpec/ContextMethod
when multi-line context with#
at the beginning. (@ydah) - Fix an incorrect autocorrect for
RSpec/PredicateMatcher
when multiline expect and predicate method with heredoc. (@ydah) - Fix a false positive for
RSpec/PredicateMatcher
wheninclude
with multiple argument. (@ydah)
RuboCop RSpec v2.17.0
- Fix a false positive for
RSpec/PendingWithoutReason
when pending/skip is argument of methods. (@ydah) - Add new
RSpec/Capybara/MatchStyle
cop. (@ydah) - Add new
RSpec/Rails/MinitestAssertions
cop. (@ydah) - Fix a false positive for
RSpec/PendingWithoutReason
when not inside example. (@ydah) - Fix a false negative for
RSpec/PredicateMatcher
when usinginclude
andrespond_to
. (@ydah) - Fix a false positive for
RSpec/StubbedMock
when stubbed message expectation with a block and block parameter. (@ydah)
RuboCop RSpec v2.16.0
- Add new
RSpec/FactoryBot/FactoryNameStyle
cop. (@ydah) - Improved processing speed for
RSpec/Be
,RSpec/ExpectActual
,RSpec/ImplicitExpect
,RSpec/MessageSpies
,RSpec/PredicateMatcher
andRSpec/Rails/HaveHttpStatus
. (@ydah) - Fix wrong autocorrection in
n_times
style onRSpec/FactoryBot/CreateList
. (@r7kamura) - Fix a false positive for
RSpec/FactoryBot/ConsistentParenthesesStyle
when usinggenerate
with multiple arguments. (@ydah) - Mark
RSpec/BeEq
asSafe: false
(@r7kamura) - Add
RSpec/DuplicatedMetadata
cop. (@r7kamura) - Mark
RSpec/BeEql
asSafe: false
. (@r7kamura) - Add
RSpec/PendingWithoutReason
cop. (@r7kamura)
RuboCop RSpec v2.15.0
- Fix a false positive for
RSpec/RepeatedDescription
when different its block expectations are used. (@ydah) - Add
named_only
style toRSpec/NamedSubject
. (@kuahyeow) - Fix
RSpec/FactoryBot/ConsistentParenthesesStyle
to ignore calls without the first positional argument. (@pirj) - Fix
RSpec/FactoryBot/ConsistentParenthesesStyle
to ignore calls inside a Hash or an Array. (@pirj) - Fix
RSpec/NestedGroups
to correctly useAllowedGroups
config. (@samrjenkins) - Remove
Runners
andHookScopes
RSpec DSL elements from configuration. (@pirj) - Add
with default RSpec/Language config
helper tolib
(underrubocop/rspec/shared_contexts/default_rspec_language_config_context
), to allow use for downstream cops based onRuboCop::Cop::RSpec::Base
. (@smcgivern)
RuboCop RSpec v2.14.2
- Fix an incorrect autocorrect for
FactoryBot/ConsistentParenthesesStyle
withomit_parentheses
option when method name and first argument are not on same line. (@ydah) - Fix autocorrection loop in
RSpec/ExampleWording
for insufficient example wording. (@pirj) - Fix
RSpec/SortMetadata
not to reorder arguments ofinclude_
/it_behaves_like
. (@pirj) - Fix a false positive for
RSpec/NoExpectationExample
when allowed pattern methods with arguments. (@ydah) - Change
RSpec/FilePath
so that it only checks suffix when path is under spec/routing or type is defined as routing. (@r7kamura)
RuboCop RSpec v2.14.1
- Fix an error for
RSpec/Rails/InferredSpecType
with redundant type before other Hash metadata. (@ydah)
RuboCop RSpec v2.14.0
- Add
require_implicit
style toRSpec/ImplicitSubject
. (@r7kamura) - Fix a false positive for
RSpec/Capybara/SpecificMatcher
whenhave_css("a")
without attribute. (@ydah) - Update
RSpec/ExampleWording
cop to raise error for insufficient descriptions. (@akrox58) - Add new
RSpec/Capybara/NegationMatcher
cop. (@ydah) - Add
AllowedPatterns
configuration option toRSpec/NoExpectationExample
. (@ydah) - Improve
RSpec/NoExpectationExample
cop to ignore examples skipped or pending via metadata. (@pirj) - Add
RSpec/FactoryBot/ConsistentParenthesesStyle
cop. (@Liberatys) - Add
RSpec/Rails/InferredSpecType
cop. (@r7kamura) - Add new
RSpec/Capybara/SpecificActions
cop. (@ydah) - Update
config/default.yml
removing deprecated option to make the config correctable by users. (@ignaciovillaverde) - Do not attempt to auto-correct example groups with
include_examples
inRSpec/LetBeforeExamples
. (@pirj) - Add new
RSpec/SortMetadata
cop. (@leoarnold) - Add support for subject! method to
RSpec/SubjectDeclaration
. (@ydah)
RuboCop RSpec v2.13.2
- Fix an error for
RSpec/Capybara/SpecificFinders
with no parentheses. (@ydah) - Fix a false positive for
RSpec/NoExpectationExample
with pending usingskip
orpending
inside an example. (@ydah) - Exclude
have_text
andhave_content
that raiseArgumentError
withRSpec/Capybara/VisibilityMatcher
where:visible
is an invalid option. (@ydah) - Fix a false negative for
RSpec/Capybara/VisibilityMatcher
with negative matchers. (@ydah)
RuboCop RSpec v2.13.1
Include config/obsoletion.yml in the gemspec. (@hosamaly)
RuboCop RSpec v2.13.0
- Fix
RSpec/FilePath
cop missing mismatched expanded namespace. (@sl4vr) - Add new
AllowConsecutiveOneLiners
(default true) option forRspec/EmptyLineAfterHook
cop. (@ngouy) - Add autocorrect support for
RSpec/EmptyExampleGroup
. (@r7kamura) - Fix
RSpec/ChangeByZero
with compound expressions using&
or|
operators. (@BrianHawley) - Add
RSpec/NoExpectationExample
. (@r7kamura) - Add some expectation methods to default configuration. (@r7kamura)
- Fix a false positive for
RSpec/Capybara/SpecificMatcher
. (@ydah) - Fix a false negative for
RSpec/Capybara/SpecificMatcher
forhave_field
. (@ydah) - Fix a false positive for
RSpec/Capybara/SpecificMatcher
when may not have ahref
byhave_link
. (@ydah) - Add
NegatedMatcher
configuration option toRSpec/ChangeByZero
. (@ydah) - Add new
RSpec/Capybara/SpecificFinders
cop. (@ydah) - Add support for numblocks to
RSpec/AroundBlock
,RSpec/EmptyLineAfterHook
,RSpec/ExpectInHook
,RSpec/HookArgument
,RSpec/HooksBeforeExamples
,RSpec/IteratedExpectation
, andRSpec/NoExpectationExample
. (@ydah) - Fix incorrect documentation URLs when using
rubocop --show-docs-url
. (@r7kamura) - Add
AllowedGroups
configuration option toRSpec/NestedGroups
. (@ydah) - Deprecate
IgnoredPatterns
option in favor of theAllowedPatterns
options. (@ydah) - Add
AllowedPatterns
configuration option toRSpec/ContextWording
. (@ydah) - Add
RSpec/ClassCheck
cop. (@r7kamura) - Fix a false positive for
RSpec/Capybara/SpecificMatcher
when pseudo-classes. (@ydah) - Fix a false negative for
RSpec/SubjectStub
when the subject is declared with thesubject!
method and called by name. (@eikes) - Support
Array.new(n)
onRSpec/FactoryBot/CreateList
cop. (@r7kamura)