rubocop-rspec

Code style checking for RSpec files.

MIT License

Downloads
177.8M
Stars
789
Committers
166

Bot releases are visible (Hide)

rubocop-rspec - RuboCop RSpec v2.21.0

Published by bquorning over 1 year ago

  • Fix a false positive in RSpec/IndexedLet with suffixes after index-like numbers. (@pirj)
  • Fix an error for RSpec/Rails/HaveHttpStatus with comparison with strings containing non-numeric characters. (@ydah)
  • Fix an error for RSpec/MatchArray when match_array with no argument. (@ydah)
  • Add support a_block_changing and changing for RSpec/ChangeByZero. (@ydah)
  • Drop Ruby 2.6 support. (@ydah)
rubocop-rspec - RuboCop RSpec v2.20.0

Published by bquorning over 1 year ago

  • Add new RSpec/IndexedLet cop. (@dmitrytsepelev)
  • Add new RSpec/BeEmpty cop. (@ydah, @bquorning)
  • Add autocorrect support for RSpec/ScatteredSetup. (@ydah)
  • Add support be_status style for RSpec/Rails/HttpStatus. (@ydah)
  • Add support for shared example groups to RSpec/EmptyLineAfterExampleGroup. (@pirj)
  • Add support for RSpec/HaveHttpStatus when using response.code. (@ydah)
  • Fix order of expected and actual in correction for RSpec/Rails/MinitestAssertions (@mvz)
  • Fix a false positive for RSpec/DescribedClassModuleWrapping when RSpec.describe numblock is nested within a module. (@ydah)
  • Fix a false positive for RSpec/FactoryBot/ConsistentParenthesesStyle inside &&, || and :? when omit_parentheses is on (@dmitrytsepelev)
  • Fix a false positive for RSpec/PendingWithoutReason when pending/skip has a reason inside an example group. (@ydah)
  • Fix a false negative for RSpec/RedundantAround when redundant numblock around. (@ydah)
  • Change RSpec/ContainExactly to ignore calls with no arguments, and change RSpec/MatchArray to ignore calls with an empty array literal argument. (@ydah, @bquorning)
  • Make RSpec/MatchArray and RSpec/ContainExactly pending. (@ydah)
rubocop-rspec - RuboCop RSpec v2.19.0

Published by bquorning over 1 year ago

  • Add new RSpec/PendingBlockInsideExample cop. (@ydah)
  • Add new RSpec/RedundantAround cop. (@r7kamura)
  • Add new RSpec/Rails/TravelAround cop. (@r7kamura)
  • Add new RSpec/ContainExactly and RSpec/MatchArray cops. (@faucct)
  • Rename RSpec/PendingBlockInsideExample cop to RSpec/SkipBlockInsideExample. (@pirj)
  • Fix a false positive for RSpec/ContextWording when context is interpolated string literal or execute string. (@ydah)
  • Fix a false positive for RSpec/DescribeMethod when multi-line describe without # and . at the beginning. (@ydah, @pirj)
  • Fix a false positive for RSpec/VariableName when inside non-spec code. (@ydah)
  • Fix a false positive for RSpec/VariableDefinition when inside non-spec code. (@ydah)
  • Fix a false positive for RSpec/PendingWithoutReason when not inside example and pending/skip with block. (@ydah, @pirj)
  • Fix a false positive for RSpec/PendingWithoutReason when skip is passed a block inside example. (@ydah, @pirj)
  • Fix an incorrect autocorrect for RSpec/VerifiedDoubleReference when namespaced class. (@ydah)
  • Deprecate send_pattern/block_pattern/numblock_pattern helpers in favour of using node pattern explicitly. (@pirj, @ydah)
rubocop-rspec - RuboCop RSpec v2.18.1

Published by bquorning over 1 year ago

  • Add rubocop-capybara version constraint to prevent sudden cop enabling when it hits 3.0. (@pirj)
rubocop-rspec - RuboCop RSpec v2.18.0

Published by bquorning almost 2 years ago

  • 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 - RuboCop RSpec v2.17.1

Published by bquorning almost 2 years ago

  • 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 - RuboCop RSpec v2.17.0

Published by bquorning almost 2 years ago

  • 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 - RuboCop RSpec v2.16.0

Published by bquorning almost 2 years ago

  • 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 - RuboCop RSpec v2.15.0

Published by bquorning almost 2 years ago

  • 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 - RuboCop RSpec v2.14.2

Published by bquorning almost 2 years ago

  • 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 - RuboCop RSpec v2.14.1

Published by bquorning almost 2 years ago

  • Fix an error for RSpec/Rails/InferredSpecType with redundant type before other Hash metadata. (@ydah)
rubocop-rspec - RuboCop RSpec v2.14.0

Published by bquorning almost 2 years ago

  • 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 - RuboCop RSpec v2.13.2

Published by bquorning about 2 years ago

  • 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 - RuboCop RSpec v2.13.1

Published by bquorning about 2 years ago

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

rubocop-rspec - RuboCop RSpec v2.13.0

Published by bquorning about 2 years ago

  • Fix RSpec/FilePath cop missing mismatched expanded namespace. (@sl4vr)
  • Add new AllowConsecutiveOneLiners (default true) option for Rspec/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 for have_field. (@ydah)
  • Fix a false positive for RSpec/Capybara/SpecificMatcher when may not have a href by have_link. (@ydah)
  • Add NegatedMatcher configuration option to RSpec/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, and RSpec/NoExpectationExample. (@ydah)
  • Fix incorrect documentation URLs when using rubocop --show-docs-url. (@r7kamura)
  • Add AllowedGroups configuration option to RSpec/NestedGroups. (@ydah)
  • Deprecate IgnoredPatterns option in favor of the AllowedPatterns options. (@ydah)
  • Add AllowedPatterns configuration option to RSpec/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 the subject! method and called by name. (@eikes)
  • Support Array.new(n) on RSpec/FactoryBot/CreateList cop. (@r7kamura)
rubocop-rspec - RuboCop RSpec v2.12.1

Published by bquorning about 2 years ago

  • Fix a false positive for RSpec/Capybara/SpecificMatcher. (@ydah)
rubocop-rspec - RuboCop RSpec v2.12.0

Published by bquorning about 2 years ago

  • Fix incorrect path suggested by RSpec/FilePath cop when second argument contains spaces. (@tejasbubane)
  • Fix autocorrect for EmptyLineSeparation. (@johnny-miyake)
  • Add new RSpec/Capybara/SpecificMatcher cop. (@ydah)
  • Fixed false offense detection in FactoryBot/CreateList when a n.times block is including method calls in the factory create arguments. (@ngouy)
  • Fix error in RSpec/RSpec/FactoryBot/CreateList cop for empty block. (@tejasbubane)
  • Update RSpec/MultipleExpectations cop documentation with examples of aggregate_failures use. (@edgibbs)
  • Declare autocorrect as unsafe for RSpec/VerifiedDoubleReference. (@Drowze)
  • Add new RSpec/Rails/HaveHttpStatus cop. (@akiomik)
rubocop-rspec - RuboCop RSpec v2.11.1

Published by bquorning over 2 years ago

  • Fix a regression in RSpec/ExpectChange flagging chained method calls. (@pirj)
rubocop-rspec - RuboCop RSpec v2.11.0

Published by bquorning over 2 years ago

  • Drop Ruby 2.5 support. (@ydah)
  • Add new RSpec/ChangeByZero cop. (@ydah)
  • Improve RSpec/ExpectChange to detect namespaced and top-level constants. (@M-Yamashita01)
  • Introduce an amendment to Metrics/BlockLength to exclude spec files. (@luke-hill)
rubocop-rspec - RuboCop RSpec v2.10.0

Published by bquorning over 2 years ago

  • Fix a false positive for RSpec/EmptyExampleGroup when expectations in case statement. (@ydah)
  • Add RSpec/VerifiedDoubleReference cop. (@t3h2mas)
  • Make RSpec/BeNil cop configurable with a be_nil style and a be style. (@bquorning)
  • Fix Capybara/CurrentPathExpectation autocorrect incompatible with Style/TrailingCommaInArguments autocorrect. (@ydah)