Skip to content

Releases: rubocop/rubocop-rspec

RuboCop RSpec v2.18.0

16 Jan 10:22
68252e8
Compare
Choose a tag to compare
  • Extract Capybara cops to a separate repository, rubocop-capybara. The rubocop-capybara repository is a dependency of rubocop-rspec and the Capybara cops are aliased (RSpec/Capybara/Foo == Capybara/Foo) until v3.0 is released, so the change will be invisible to users until then. (@pirj)

RuboCop RSpec v2.17.1

16 Jan 07:27
Compare
Choose a tag to compare
  • 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 when include with multiple argument. (@ydah)

RuboCop RSpec v2.17.0

13 Jan 11:44
1de57a6
Compare
Choose a tag to compare
  • 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 using include and respond_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

13 Dec 09:38
f721785
Compare
Choose a tag to compare
  • Add new RSpec/FactoryBot/FactoryNameStyle cop. (@ydah)
  • Improved processing speed for RSpec/Be, RSpec/ExpectActual, RSpec/ImplicitExpect, RSpec/MessageSpies, RSpec/PredicateMatcher and RSpec/Rails/HaveHttpStatus. (@ydah)
  • Fix wrong autocorrection in n_times style on RSpec/FactoryBot/CreateList. (@r7kamura)
  • Fix a false positive for RSpec/FactoryBot/ConsistentParenthesesStyle when using generate with multiple arguments. (@ydah)
  • Mark RSpec/BeEq as Safe: false (@r7kamura)
  • Add RSpec/DuplicatedMetadata cop. (@r7kamura)
  • Mark RSpec/BeEql as Safe: false. (@r7kamura)
  • Add RSpec/PendingWithoutReason cop. (@r7kamura)

RuboCop RSpec v2.15.0

03 Nov 20:04
cd6b33b
Compare
Choose a tag to compare
  • Fix a false positive for RSpec/RepeatedDescription when different its block expectations are used. (@ydah)
  • Add named_only style to RSpec/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 use AllowedGroups config. (@samrjenkins)
  • Remove Runners and HookScopes RSpec DSL elements from configuration. (@pirj)
  • Add with default RSpec/Language config helper to lib (under rubocop/rspec/shared_contexts/default_rspec_language_config_context), to allow use for downstream cops based on RuboCop::Cop::RSpec::Base. (@smcgivern)

RuboCop RSpec v2.14.2

25 Oct 18:09
Compare
Choose a tag to compare
  • Fix an incorrect autocorrect for FactoryBot/ConsistentParenthesesStyle with omit_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 of include_/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

24 Oct 06:39
Compare
Choose a tag to compare
  • Fix an error for RSpec/Rails/InferredSpecType with redundant type before other Hash metadata. (@ydah)

RuboCop RSpec v2.14.0

23 Oct 22:08
85e6802
Compare
Choose a tag to compare
  • Add require_implicit style to RSpec/ImplicitSubject. (@r7kamura)
  • Fix a false positive for RSpec/Capybara/SpecificMatcher when have_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 to RSpec/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 in RSpec/LetBeforeExamples. (@pirj)
  • Add new RSpec/SortMetadata cop. (@leoarnold)
  • Add support for subject! method to RSpec/SubjectDeclaration. (@ydah)

RuboCop RSpec v2.13.2

22 Sep 21:41
d40542d
Compare
Choose a tag to compare
  • Fix an error for RSpec/Capybara/SpecificFinders with no parentheses. (@ydah)
  • Fix a false positive for RSpec/NoExpectationExample with pending using skip or pending inside an example. (@ydah)
  • Exclude have_text and have_content that raise ArgumentError with RSpec/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

12 Sep 16:40
5627784
Compare
Choose a tag to compare

Include config/obsoletion.yml in the gemspec. (@hosamaly)