A summary of data about the Ruby ecosystem.

Recent Releases of https://github.com/rubocop/rubocop-rspec

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.9.0

  • Fix a false positive for RSpec/LeakyLocalVariable when variables are used only in example metadata (e.g., skip messages). (@ydah)
  • Fix a false positive for RSpec/ScatteredSetup when the hook is defined inside a class method. (@d4rky-pl)
  • Fix a false positive for RSpec/DescribedClass inside dynamically evaluated blocks (class_eval, module_eval, instance_eval, class_exec, module_exec, instance_exec). (@sucicfilip)
  • Add new cop RSpec/Output. (@kevinrobell-st)

- Ruby
Published by github-actions[bot] about 2 months ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.8.0

  • Add new cop RSpec/LeakyLocalVariable. (@lovro-bikic)
  • Bump RuboCop requirement to +1.81. (@ydah)
  • Fix a false positive for RSpec/LetSetup when let! used in outer scope. (@ydah)
  • Fix a false positive for RSpec/ReceiveNever cop when allow(...).to receive(...).never. (@ydah)
  • Fix detection of nameless doubles with methods in RSpec/VerifiedDoubles. (@ushi-as)
  • Improve an offense message for RSpec/RepeatedExample cop. (@ydah)
  • Let RSpec/SpecFilePathFormat leverage ActiveSupport inflections when configured. (@corsonknowles, @bquorning)

- Ruby
Published by github-actions[bot] 4 months ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.7.0

  • Mark RSpec/IncludeExamples as SafeAutoCorrect: false. (@yujideveloper)
  • Fix a false positive for RSpec/LeakyConstantDeclaration when defining constants in explicit namespaces. (@naveg)
  • Add support for error matchers (raise_exception and raise_error) to RSpec/Dialect. (@lovro-bikic)
  • Don't register offenses for RSpec/DescribedClass within Data.define blocks. (@lovro-bikic)
  • Add autocorrection support for RSpec/IteratedExpectation for single expectations. (@lovro-bikic)
  • Exclude all cops from inspecting factorybot files, except if explicitly included. (@Mth0158)
  • Fix a false positive for RSpec/ExcessiveDocstringSpacing when receivers are not RSpec methods. (@ydah)

- Ruby
Published by github-actions[bot] 6 months ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.6.0 (RubyKaigi 2025 Edition🍊)

  • Fix false positive in RSpec/Pending, where it would mark the default block it as an offense. (@bquorning)
  • Fix issue when Style/ContextWording is configured with a Prefix being interpreted as a boolean, like on. (@sakuro)
  • Add new RSpec/IncludeExamples cop to enforce using it_behaves_like over include_examples. (@dvandersluis)
  • Change RSpec/ScatteredSetup to allow around hooks to be scattered. (@ydah)
  • Fix an error RSpec/ChangeByZero cop when without expect block. (@lee266)
  • Fix a false positive for RSpec/DescribedClass when SkipBlocks is true and numblocks are used. (@earlopain)

- Ruby
Published by github-actions[bot] 11 months ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.5.0

  • Don't let RSpec/PredicateMatcher replace respond_to? with two arguments with the RSpec respond_to matcher. (@bquorning)
  • Fix RSpec/PredicateMatcher support for eql and equal matchers. (@bquorning)
  • Pluginfy RuboCop RSpec. (@koic)

- Ruby
Published by github-actions[bot] about 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.4.0

  • Fix RSpec/SortMetadata cop to limit sorting to trailing metadata arguments. (@cbliard)
  • Replace RSpec/StringAsInstanceDoubleConstant with RSpec/VerifiedDoubleReference configured to only support constant class references. (@corsonknowles)
  • Fix RSpec/EmptyExampleGroup cop false positive when a simple conditional is used inside an iterator. (@lovro-bikic)

- Ruby
Published by github-actions[bot] about 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.3.0

  • Deprecate top_level_group? method from TopLevelGroup mixin as all of its callers were intentionally removed from Rubocop/RSpec. (@corsonknowles)
  • Fix false positive for RSpec/EmptyMetadata for splat kwargs. (@pirj)

- Ruby
Published by github-actions[bot] about 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.2.0

  • Fix RSpec/VoidExpect to only operate inside an example block. (@corsonknowles)
  • Change RSpec/ContextWording cop to always report an offense when both Prefixes and AllowedPatterns are empty. (@ydah)
  • Add support for and and or compound matchers to RSpec/ChangeByZero cop. (@ydah)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.1.0

  • Add RSpec/StringAsInstanceDoubleConstant to check for and correct strings used as instance_doubles. (@corsonknowles)
  • Fix false-positive for RSpec/UnspecifiedException when a method is literally named raise_exception. (@aarestad)
  • Fix false-positive for RSpec/UnspecifiedException when not_to raise_error is used within a block. (@aarestad, @G-Rath)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.5

  • Fix false-negative and error for RSpec/MetadataStyle when non-literal args are used in metadata in EnforceStyle: hash. (@cbliard)
  • Improve offense message for RSpec/IndexedLet. (@earlopain)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.4

  • Fix false-negative for UnspecifiedException when matcher is chained. (@r7kamura)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.3

  • Add support for Unicode RIGHT SINGLE QUOTATION MARK in RSpec/ExampleWording. (@jdufresne)
  • Suppress deprecation warning for RSpec/MultipleExpectations, RSpec/MultipleMemoizedHelpers, and RSpec/NestedGroups cops. (@koic)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.2

  • Fix wrong autocorrect for RSpec/ScatteredSetup when hook contains heredoc. (@earlopain)
  • Fix false negative for RSpec/PredicateMatcher when expectation contains custom failure message. (@earlopain)
  • Facilitate the 3.0 upgrade flow with proper extracted cop messages. (@jeppester)

- Ruby
Published by ydah over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.1

  • Bump RuboCop requirement to +1.61. (@ydah)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.0

  • Remove extracted cops in Capybara, FactoryBot and Rails departments. (@ydah)
  • Remove RuboCop::RSpec::Language::NodePattern. (@ydah)
  • Remove RSpec/FilePath cop. (@ydah)
  • Remove RSpec/Capybara/FeatureMethods cop. If you are using this cop, change it to use RSpec/Dialect. (@ydah)
  • Add new RSpec/MissingExpectationTargetMethod cop. (@krororo)
  • Fix an error for RSpec/ScatteredSetup when one of the hooks is an empty block. (@earlopain)

These previously pending cops are now enabled by default: RSpec/BeEmpty, RSpec/BeEq, RSpec/BeNil, RSpec/ChangeByZero, RSpec/ClassCheck, RSpec/ContainExactly, RSpec/DuplicatedMetadata, RSpec/EmptyMetadata, RSpec/EmptyOutput, RSpec/Eq, RSpec/ExcessiveDocstringSpacing, RSpec/ExpectInLet, RSpec/IdenticalEqualityAssertion, RSpec/IndexedLet, RSpec/IsExpectedSpecify, RSpec/MatchArray, RSpec/MetadataStyle, RSpec/NoExpectationExample, RSpec/PendingWithoutReason, RSpec/ReceiveMessages, RSpec/RedundantAround, RSpec/RedundantPredicateMatcher, RSpec/RemoveConst, RSpec/RepeatedSubjectCall, RSpec/SkipBlockInsideExample, RSpec/SortMetadata, RSpec/SpecFilePathFormat, RSpec/SpecFilePathSuffix, RSpec/SubjectDeclaration, RSpec/UndescriptiveLiteralsDescription, and RSpec/VerifiedDoubleReference.

Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v3.0.0.pre

  • Remove extracted cops in Capybara, FactoryBot and Rails departments. (@ydah)
  • Remove RuboCop::RSpec::Language::NodePattern. (@ydah)
  • Remove RSpec/FilePath cop. (@ydah)
  • Remove RSpec/Capybara/FeatureMethods cop. If you are using this cop, change it to use RSpec/Dialect. (@ydah)
  • Enable all pending cops. (@bquorning)
  • Add new RSpec/MissingExpectationTargetMethod cop. (@krororo)
  • Fix an error for RSpec/ScatteredSetup when one of the hooks is an empty block. (@earlopain)

Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.31.0

  • Support AutoCorrect: contextual option for LSP. (@ydah)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.30.0

  • Add new RSpec/ExpectInLet cop. (@yasu551)

- Ruby
Published by github-actions[bot] over 1 year ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.29.2

  • Fix beginless and endless range bug for RepeatedIncludeExample cop. (@hasghari)
  • Fix a false positive for RSpec/RepeatedSubjectCall when subject is used as argument to function call. (@K-S-A)

- Ruby
Published by github-actions[bot] almost 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.29.1

  • Fix an error in the default configuration. (@ydah)

- Ruby
Published by github-actions[bot] almost 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.29.0

  • Fix an autocorrect error for RSpec/ExpectActual. (@bquorning)
  • Add new RSpec/UndescriptiveLiteralsDescription cop. (@ydah)
  • Add new RSpec/EmptyOutput cop. (@bquorning)

- Ruby
Published by github-actions[bot] almost 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.28.0

  • Extract RSpec Rails cops to a separate repository, rubocop-rspec_rails. The rubocop-rspec_rails repository is a dependency of rubocop-rspec and the cops related to rspec-rails are aliased (RSpec/Rails/Foo == RSpecRails/Foo) until v3.0 is released, so the change will be invisible to users until then. (@ydah)

- Ruby
Published by ydah almost 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.27.1

  • Fix a false positive for RSpec/RepeatedSubjectCall when subject.method_call. (@ydah)
  • Add configuration option OnlyStaticConstants to RSpec/DescribedClass. (@ydah)

- Ruby
Published by bquorning almost 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.27.0

  • Add new RSpec/IsExpectedSpecify cop. (@ydah)
  • Add new RSpec/RepeatedSubjectCall cop. (@drcapulet)
  • 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 in RSpec/Rails/MinitestAssertions. (@ydah, @G-Rath)
  • Support asserts with messages in Rspec/BeEmpty. (@G-Rath)
  • Fix a false positive for RSpec/ExpectActual when used with rspec-rails routing matchers. (@naveg)
  • Add configuration option ResponseMethods to RSpec/Rails/HaveHttpStatus. (@ydah)
  • Fix a false negative for RSpec/DescribedClass when class with constant. (@ydah)
  • Fix a false positive for RSpec/ExampleWithoutDescription when specify with multi-line block and missing description. (@ydah)
  • Fix an incorrect autocorrect for RSpec/ChangeByZero when compound expectations with line break before .by(0). (@ydah)

- Ruby
Published by bquorning about 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.26.1

  • Fix an error for RSpec/SharedExamples when using examples without argument. (@ydah)

- Ruby
Published by bquorning about 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.26.0

  • Add new RSpec/RedundantPredicateMatcher cop. (@ydah)
  • Add new RSpec/RemoveConst cop. (@swelther)
  • Add support for correcting "it will" (future tense) for RSpec/ExampleWording. (@jdufresne)
  • Add support for symbol style for RSpec/SharedExamples. (@jessieay)
  • Ensure PendingWithoutReason can detect violations inside shared groups. (@robinaugh)

- Ruby
Published by bquorning about 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.25.0

  • Add support single quoted string and percent string and heredoc for RSpec/Rails/HttpStatus. (@ydah)
  • Change to be inline disable for RSpec/SpecFilePathFormat like RSpec/FilePath. (@ydah)
  • Fix a false positive for RSpec/MetadataStyle with example groups having multiple string arguments. (@franzliedke)

- Ruby
Published by bquorning over 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.24.1

  • Fix an error when using RSpec/FilePath and revert to enabled by default. If you have already moved to RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat, disable RSpec/FilePath explicitly as Enabled: false. The RSpec/FilePath before migration and the RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat as the target are available respectively. (@ydah)

- Ruby
Published by bquorning over 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.24.0

  • Split RSpec/FilePath into RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat. RSpec/FilePath cop is enabled by default, the two new cops are pending and need to be enabled explicitly. (@ydah)
  • Add new RSpec/Eq cop. (@ydah)
  • Add RSpec/MetadataStyle and RSpec/EmptyMetadata cops. (@r7kamura)
  • Add support RSpec/Rails/HttpStatus when have_http_status with string argument. (@ydah)
  • Fix an infinite loop error when RSpec/ExcessiveDocstringSpacing finds a description with non-ASCII leading/trailing whitespace. (@bcgraham)
  • Fix an incorrect autocorrect for RSpec/ReceiveMessages when return values declared between stubs. (@marocchino)
  • Fix a false positive RSpec/Focus when chained method call and inside define method. (@ydah)

- Ruby
Published by bquorning over 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.23.2

  • Fix an incorrect autocorrect for RSpec/ReceiveMessages when method is only non-word character. (@marocchino)
  • Fix a false positive for RSpec/ReceiveMessages when return with splat. (@marocchino)

- Ruby
Published by bquorning over 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.23.1

  • Mark to Safe: false for RSpec/Rails/NegationBeValid cop. (@ydah)
  • Declare autocorrect as unsafe for RSpec/ReceiveMessages. (@bquorning)

- Ruby
Published by bquorning over 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.23.0

  • 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 in if branch inside iterator. (@ydah)
  • Update the message output of RSpec/ExpectActual to include the word 'value'. (@corydiamand)
  • Fix a false negative for RSpec/Pending when it without body. (@ydah)
  • Add new RSpec/ReceiveMessages cop. (@ydah)
  • Change default.yml path to use **/spec/* instead of spec/*. (@ydah)
  • Add AllowedIdentifiers and AllowedPatterns configuration option to RSpec/IndexedLet. (@ydah)
  • Fix RSpec/NamedSubject when block has no body. (@splattael)
  • Fix RSpec/LetBeforeExamples autocorrect incompatible with RSpec/ScatteredLet autocorrect. (@ydah)
  • Update RSpec/Focus to support shared_context and shared_examples (@tmaier)

- Ruby
Published by bquorning over 2 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.22.0

  • Extract factory_bot cops to a separate repository, rubocop-factory_bot. The rubocop-factory_bot repository is a dependency of rubocop-rspec and the factory_bot cops are aliased (RSpec/FactoryBot/Foo == FactoryBot/Foo) until v3.0 is released, so the change will be invisible to users until then. (@ydah)

- Ruby
Published by bquorning almost 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.21.0

  • 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)

- Ruby
Published by bquorning almost 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.20.0

  • 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)

- Ruby
Published by bquorning almost 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.19.0

  • 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)

- Ruby
Published by bquorning almost 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.18.1

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

- Ruby
Published by bquorning about 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.18.0

  • 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)

- Ruby
Published by bquorning about 3 years ago

https://github.com/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 when include with multiple argument. (@ydah)

- Ruby
Published by bquorning about 3 years ago

https://github.com/rubocop/rubocop-rspec - 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 using include and respond_to. (@ydah)
  • Fix a false positive for RSpec/StubbedMock when stubbed message expectation with a block and block parameter. (@ydah)

- Ruby
Published by bquorning about 3 years ago

https://github.com/rubocop/rubocop-rspec - 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 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)

- Ruby
Published by bquorning about 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.15.0

  • 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)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.14.2

  • 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)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.14.1

  • Fix an error for RSpec/Rails/InferredSpecType with redundant type before other Hash metadata. (@ydah)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.14.0

  • 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)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - 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 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)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.13.1

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

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.13.0

  • 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)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.12.1

  • Fix a false positive for RSpec/Capybara/SpecificMatcher. (@ydah)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.12.0

  • 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)

- Ruby
Published by bquorning over 3 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.11.1

  • Fix a regression in RSpec/ExpectChange flagging chained method calls. (@pirj)

- Ruby
Published by bquorning almost 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.11.0

  • 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)

- Ruby
Published by bquorning almost 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.10.0

  • 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)

- Ruby
Published by bquorning almost 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.9.0

- Ruby
Published by bquorning about 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.8.0

  • Fix RSpec/FactoryBot/SyntaxMethods and RSpec/Capybara/FeatureMethods to inspect shared groups. (@pirj)
  • Fix RSpec/LeadingSubject failure in non-spec code. (@pirj)
  • Add bad example to RSpec/SubjectStub cop. (@oshiro3)
  • Replace non-styleguide cops StyleGuide attribute with Reference. (@pirj)
  • Fix RSpec/SubjectStub to disallow stubbing of subjects defined in parent example groups. (@pirj)

- Ruby
Published by bquorning about 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.7.0

  • Add new RSpec/FactoryBot/SyntaxMethods cop. (@leoarnold)
  • Exclude task type specs from RSpec/DescribeClass cop. (@harry-graham)

- Ruby
Published by bquorning about 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.6.0

  • Fix merging RSpec DSL configuration from third-party gems. (@pirj)
  • Fix RSpec/ExcessiveDocstringSpacing false positive for multi-line indented strings. (@G-Rath)
  • Fix Include configuration for sub-departments. (@pirj)
  • Ignore heredocs in RSpec/ExcessiveDocstringSpacing. (@G-Rath)
  • Stop RSpec/ExampleWording from trying to correct heredocs. (@G-Rath)
  • Add autocorrect support for RSpec/VariableDefinition. (@r7kamura)

- Ruby
Published by bquorning over 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.5.0

  • Declare autocorrect as unsafe for ExpectChange. (@francois-ferrandis)
  • Fix each example for RSpec/HookArgument. (@lokhi)
  • Exclude unrelated Rails directories from RSpec/DescribeClass. (@MothOnMars)
  • Add RSpec/ExcessiveDocstringSpacing cop. (@G-Rath)
  • Add RSpec/SubjectDeclaration cop. (@dswij)
  • Fix excessive whitespace removal in RSpec/EmptyHook autocorrection. (@pirj)
  • Bump RuboCop requirement to v1.19.0. (@pirj)
  • Fix false positive in RSpec/IteratedExpectation when there is single, non-expectation statement in the block body. (@Darhazer)

- Ruby
Published by Darhazer over 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.4.0

  • Update RSpec/FilePath to check suffix when given a non-constant top-level node (e.g. features). (@topalovic)
  • Add missing documentation for single_statement_only style of RSpec/ImplicitSubject cop. (@tejasbubane)
  • Fix an exception in DescribedClass when accessing a constant on a variable in a spec that is nested in a namespace. (@rrosenblum)
  • Add new RSpec/IdenticalEqualityAssertion cop. (@tejasbubane)
  • Add RSpec/Rails/AvoidSetupHook cop. (@paydaylight)
  • Fix false negative in RSpec/ExpectChange cop with block style and chained method call. (@tejasbubane)

- Ruby
Published by bquorning over 4 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.3.0

  • Allow RSpec/ContextWording to accept multi-word prefixes. (@hosamaly)
  • Drop support for ruby 2.4. (@bquorning)
  • Add CountAsOne configuration option to RSpec/ExampleLength. (@stephannv)
  • Fix a false positive for RSpec/RepeatedExampleGroupBody when pending or skip have argument(s). (@Tietew)

- Ruby
Published by bquorning almost 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.2.0

  • Fix HooksBeforeExamples, LeadingSubject, LetBeforeExamples and ScatteredLet autocorrection to take into account inline comments and comments immediately before the moved node. (@Darhazer)
  • Improve rubocop-rspec performance. (@Darhazer, @bquorning)
  • Include Enabled: true to prevent a mismatched configuration parameter warning when RSpec cops are explicitly enabled in the user configuration. (@pirj)

- Ruby
Published by bquorning about 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.1.0

  • Fix RSpec/FilePath false positive for relative file path runs with long namespaces. (@ahukkanen)
  • Update RSpec/Focus to have auto-correction. (@dvandersluis)

- Ruby
Published by bquorning about 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.0.1

  • Fixed infinite loop in RSpec/ExpectActual autocorrection when both expected and actual values are literals. (@Darhazer)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.0.0

This a major release, so please consider all changes “potentially breaking”. Read more about upgrading in our Upgrade to Version 2.x document.

  • Remove deprecated class ::RuboCop::Cop::RSpec::Cop. (@bquorning)
  • Retire RSpec/InvalidPredicateMatcher cop. (@pirj)
  • Remove the code responsible for filtering files to inspect. (@pirj)
  • Make RSpec language elements configurable. (@sl4vr)
  • Remove CustomIncludeMethods RSpec/EmptyExampleGroup option in favour of the new RSpec DSL configuration. (@pirj)
  • Enabled pending cop (RSpec/StubbedMock). (@pirj)

See also https://github.com/rubocop-hq/rubocop-rspec/releases/v2.0.0.pre

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v2.0.0.pre

  • Update RuboCop dependency to v1.0.0. (@bquorning)
  • (Potentially breaking) Change namespace of several cops (Capybara/* → RSpec/Capybara/*, FactoryBot/* → RSpec/FactoryBot/*, Rails/* → RSpec/Rails/*). (@pirj, @bquorning)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.44.1

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.44.0

  • Move our documentation from rubocop-rspec.readthedocs.io to docs.rubocop.org/rubocop-rspec. (@bquorning)
  • Add RSpec/RepeatedIncludeExample cop. (@biinari)
  • Add RSpec/StubbedMock cop. (@bquorning, @pirj)
  • Add IgnoredMetadata configuration option to RSpec/DescribeClass. (@Rafix02)
  • Fix false positives in RSpec/EmptyExampleGroup. (@pirj)
  • Fix a false positive for RSpec/EmptyExampleGroup when example is defined in an if branch. (@koic)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.43.2

  • Fix RSpec/FilePath when checking a file with a shared example. (@pirj)
  • Fix subject nesting detection in RSpec/LeadingSubject. (@pirj)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.43.1

Fix RSpec/FilePath when checking a file defining e.g. an empty class. (@bquorning)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.43.0

  • Add a new base cop class ::RuboCop::Cop::RSpec::Base. The old base class ::RuboCop::Cop::RSpec::Cop is deprecated, and will be removed in the next major release. (@bquorning)
  • Add support for subject detection after includes and example groups in RSpec/LeadingSubject. (@pirj)
  • Ignore trailing punctuation in context description prefix. (@elliterate)
  • Relax RSpec/VariableDefinition cop so interpolated and multiline strings are accepted even when configured to enforce the symbol style. (@bquorning)
  • Fix RSpec/EmptyExampleGroup to flag example groups with examples in invalid scopes. (@mlarraz)
  • Fix RSpec/EmptyExampleGroup to ignore examples groups with examples defined inside iterators. (@pirj)
  • Improve RSpec/NestedGroups, RSpec/FilePath, RSpec/DescribeMethod, RSpec/MultipleDescribes, RSpec/DescribeClass's top-level example group detection. (@pirj)
  • Add detection of let! with a block-pass or a string literal to RSpec/LetSetup. (@pirj)
  • Add IgnoredPatterns configuration option to RSpec/VariableName. (@jtannas)
  • Add RSpec/MultipleMemoizedHelpers cop. (@mockdeep)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.42.0

  • Update RuboCop dependency to 0.87.0 because of changes to internal APIs. (@bquorning, @Darhazer)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.41.0

  • Extend the list of Rails spec types for RSpec/DescribeClass. (@pirj)
  • Fix FactoryBot/AttributeDefinedStatically to allow #traits_for_enum without a block. (@harrylewis)
  • Improve the performance of FactoryBot/AttributeDefinedStatically, RSpec/InstanceVariable, RSpec/LetSetup, RSpec/NestedGroups and RSpec/ReturnFromStub. (@andrykonchin)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.40.0

  • Add new RSpec/VariableName cop. (@tejasbubane)
  • Add new RSpec/VariableDefinition cop. (@tejasbubane)
  • Expand Capybara/VisibilityMatcher to support more than just have_selector. (@twalpole)
  • Add new SpecSuffixOnly option to RSpec/FilePath cop. (@zdennis)
  • Allow RSpec/RepeatedExampleGroupBody to differ only by described_class. (@robotdana)
  • Fix RSpec/FilePath detection across sibling directories. (@rolfschmidt)
  • Improve the performance of RSpec/SubjectStub by an order of magnitude. (@andrykonchin)

- Ruby
Published by bquorning over 5 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.39.0

  • Fix RSpec/FilePath detection when absolute path includes test subject. (@eitoball)
  • Add new Capybara/VisibilityMatcher cop. (@aried3r)
  • Ignore String constants by RSpec/Describe. (@AlexWayfer)
  • Drop support for Ruby 2.3. (@bquorning)
  • Fix multiple cops to detect let with proc argument. (@tejasbubane)
  • Add autocorrect support for RSpec/ScatteredLet. (@Darhazer)
  • Add new RSpec/EmptyHook cop. (@tejasbubane)

- Ruby
Published by bquorning almost 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.38.1

  • Fix RSpec/RepeatedDescription to detect descriptions with interpolation and methods. (@lazycoder9)

- Ruby
Published by bquorning about 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.38.0

  • Fix RSpec/InstanceVariable detection inside custom matchers. (@pirj)
  • Fix RSpec/ScatteredSetup to distinguish hooks with different metadata. (@pirj)
  • Add autocorrect support for RSpec/ExpectActual cop. (@dduugg, @pirj)
  • Add RSpec/RepeatedExampleGroupBody cop. (@lazycoder9)
  • Add RSpec/RepeatedExampleGroupDescription cop. (@lazycoder9)
  • Add block name and other lines to RSpec/ScatteredSetup message. (@elebow)
  • Fix RSpec/RepeatedDescription to take into account example metadata. (@lazycoder9)

- Ruby
Published by bquorning about 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.37.1

  • Improve message and description of FactoryBot/FactoryClassName. (@ybiquitous)
  • Fix FactoryBot/FactoryClassName to ignore Hash and OpenStruct. (@jfragoulis)

- Ruby
Published by bquorning about 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.37.0

  • Implement RSpec/DescribedClassModuleWrapping to disallow RSpec statements within a module. (@kellysutton)
  • Fix documentation rake task to support Rubocop 0.75. (@nickcampbell18)
  • Fix RSpec/SubjectStub to detect implicit subjects stubbed. (@QQism)
  • Fix RSpec/Pending not flagging skip with string values. (@pirj)
  • Add AllowedExplicitMatchers config option for RSpec/PredicateMatcher. (@mkrawc)
  • Add FactoryBot/FactoryClassName cop. (@jfragoulis)

- Ruby
Published by bquorning over 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.36.0

  • Fix RSpec/DescribedClass's error when described_class is used as part of a constant. (@pirj)
  • Fix RSpec/ExampleWording autocorrect of multi-line docstrings. (@pirj)
  • Add RSpec/ContextMethod cop, to detect method names in context. (@geniou)
  • Update RuboCop dependency to 0.68.1 with support for children matching node pattern syntax. (@pirj)
  • Add RSpec/EmptyLineAfterExample cop to check that there is an empty line after example blocks. (@pirj)
  • Fix Capybara/CurrentPathExpectation auto-corrector, to include option ignore_query: true. (@onumis)
  • Fix RSpec/Focus detecting mixed array/hash metadata. (@dgollahon)
  • Fix RSpec/Focus to also detect pending examples. (@dgollahon)

- Ruby
Published by bquorning over 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.35.0

  • Add RSpec/ImplicitBlockExpectation cop. (@pirj)

- Ruby
Published by bquorning over 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.34.1

  • Fix RSpec/DescribedClass's error when a local variable is part of the namespace. (@pirj)

- Ruby
Published by bquorning over 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.34.0

  • Remove AggregateFailuresByDefault config option of RSpec/MultipleExpectations. (@pirj)
  • Add RSpec/LeakyConstantDeclaration cop. (@jonatas, @pirj)
  • Improve aggregate_failures metadata detection of RSpec/MultipleExpectations. (@pirj)
  • Improve RSpec/SubjectStub detection and message. (@pirj)
  • Change message of RSpec/LetSetup cop to be more descriptive. (@foton)
  • Improve RSpec/ExampleWording to handle interpolated example messages. (@nc-holodakg)
  • Improve detection by allowing the use of RSpec as a top-level constant. (@pirj)
  • Fix RSpec/DescribedClass's incorrect detection. (@pirj)
  • Improve RSpec/DescribedClass's ability to detect inside modules and classes. (@pirj)

- Ruby
Published by bquorning over 6 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.33.0

  • Let RSpec/DescribedClass pass Struct instantiation closures. (@schmijos)
  • Fixed RSpec/ContextWording missing contexts with metadata. (@pirj)
  • Fix FactoryBot/AttributeDefinedStatically not working with an explicit receiver. (@composerinteralia)
  • Add RSpec/Dialect enforces custom RSpec dialects. (@gsamokovarov)
  • Fix redundant blank lines in RSpec/MultipleSubjects's autocorrect. (@pirj)
  • Drop support for ruby 2.2. (@bquorning)

- Ruby
Published by bquorning almost 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.32.0

  • Add RSpec/Yield cop, suggesting using the and_yield method when stubbing a method, accepting a block. (@Darhazer)
  • Fix FactoryBot/CreateList autocorrect crashing when the factory is called with a block=. (@Darhazer)
  • Fixed RSpec/Focus not flagging some cases of RSpec.describe with focus: true. (@Darhazer)
  • Fixed RSpec/Pending not flagging some cases of RSpec.describe with :skip. (@Darhazer)
  • Fix false positive in RSpec/ReceiveCounts when method name exactly, at_least or at_most is used along with times, without being an RSpec API. (@Darhazer)

- Ruby
Published by bquorning about 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.31.0

  • Add IgnoreSharedExamples option for RSpec/NamedSubject. (@RST-J)
  • Add autocorrect support for Capybara/CurrentPathExpectation cop. (@ypresto)
  • Add support for built-in exists matcher for RSpec/PredicateMatcher cop. (@mkenyon)
  • SingleArgumentMessageChain no longer reports an array as it's only argument as an offense. (@Darhazer)

- Ruby
Published by bquorning about 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.30.1

  • FactoryBot/CreateList now ignores times blocks with an argument. (@Darhazer)

- Ruby
Published by bquorning over 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.30.0

  • Add config to RSpec/VerifiedDoubles to enforcement of verification on unnamed doubles. (@BrentWheeldon)
  • Fix FactoryBot/AttributeDefinedStatically not working when there is a non-symbol key. (@vzvu3k6k)
  • Fix false positive in RSpec/ImplicitSubject when is_expected is used inside its() block. (@Darhazer)
  • Add single_statement_only style to RSpec/ImplicitSubject as a more relaxed alternative to single_line_only. (@Darhazer)
  • Add RSpec/UnspecifiedException as a default cop to encourage more-specific expect{}.to raise_error(ExceptionType), or raise_exception style handling of exceptions. (@daveworth)

- Ruby
Published by bquorning over 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.29.1

  • Fix false negative in FactoryBot/AttributeDefinedStatically when attribute is defined on self. (@Darhazer)
  • RSpec/FactoryBot cops will now also inspect the spec/factories.rb path by default. (@bquorning)

- Ruby
Published by bquorning over 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.29.0

  • RSpec/InstanceVariable - Recommend local variables in addition to let. (@jaredbeck)
  • Add RSpec/ImplicitSubject cop. (@Darhazer)
  • Add RSpec/HooksBeforeExamples cop. (@Darhazer)

- Ruby
Published by bquorning over 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.28.0

  • Add RSpec/ReceiveNever cop enforcing usage of not_to receive instead of never matcher. (@Darhazer)
  • Fix false positive in RSpec/EmptyLineAfterExampleGroup cop when example is inside if. (@Darhazer)
  • Add RSpec/MissingExampleGroupArgument to enforce first argument for an example group. (@geniou)
  • Drop support for ruby 2.1. (@bquorning)
  • Add FactoryBot/AttributeDefinedStatically cop to help FactoryBot users with the deprecation of static attributes. (@composerinteralia, @seanpdoyle)
  • Remove FactoryBot/DynamicAttributeDefinedStatically and FactoryBot/StaticAttributeDefinedDynamically cops. (@composerinteralia)

- Ruby
Published by bquorning over 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.27.0

  • RSpec/LeadingSubject now enforces subject to be before any examples, hooks or let declarations. (@Darhazer)
  • Fix RSpec/NotToNot to highlight only the selector (not_to or to_not), so it works also on expect { ... } blocks. (@bquorning)
  • Add RSpec/EmptyLineAfterHook cop. (@bquorning)
  • Add RSpec/EmptyLineAfterExampleGroup cop to check that there is an empty line after example group blocks. (@bquorning)
  • Fix RSpec/DescribeClass crashing on RSpec.describe without arguments. (@Darhazer)
  • Bump RuboCop requirement to v0.56.0. (@bquorning)
  • Fix RSpec/OverwritingSetup crashing if a variable is used as an argument for let. (@Darhazer)

- Ruby
Published by bquorning over 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.26.0

  • Fix false positive in RSpec/EmptyExampleGroup cop when methods named like a RSpec method are used. (@Darhazer)
  • Fix Capybara/FeatureMethods not working when there is require before the spec. (@Darhazer)
  • Fix RSpec/EmptyLineAfterFinalLet: allow a comment to be placed after latest let, requiring empty line after the comment. (@Darhazer)
  • Add RSpec/ReceiveCounts cop to enforce usage of :once and :twice matchers. (@Darhazer)

- Ruby
Published by bquorning over 7 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.25.1

  • Fix false positive in RSpec/Pending cop when pending is used as a method name. (@Darhazer)
  • Fix FactoryBot/DynamicAttributeDefinedStatically false positive when using symbol proc argument for a sequence. (@tdeo)

- Ruby
Published by bquorning almost 8 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.25.0

  • Add RSpec/SharedExamples cop to enforce consistent usage of string to titleize shared examples. (@anthony-robin)
  • Add RSpec/Be cop to enforce passing argument to the generic be matcher. (@Darhazer)
  • Fix false positives in StaticAttributeDefinedDynamically and ReturnFromStub when a const is used in an array or hash. (@Darhazer)
  • Add RSpec/Pending cop to enforce no existing pending or skipped examples. This is disabled by default. (@patrickomatic)
  • Fix RSpec/NestedGroups cop support --auto-gen-config. (@walf443)
  • Fix false positives in Capybara/FeatureMethods when feature methods are used as property names in a factory. (@Darhazer)
  • Allow configuring enabled methods in Capybara/FeatureMethods. (@Darhazer)
  • Add FactoryBot/CreateList cop. (@Darhazer)

- Ruby
Published by bquorning almost 8 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.24.0

  • Compatibility with RuboCop v0.53.0. (@bquorning)
  • The Rails/HttpStatus cop is unavailable if the rack gem cannot be loaded. (@bquorning)
  • Fix Rails/HttpStatus not working with custom HTTP status codes. (@bquorning)
  • Fix FactoryBot/StaticAttributeDefinedDynamically to handle empty block. (@abrom)
  • Fix false positive in FactoryBot/DynamicAttributeDefinedStatically when a before/after callback has a symbol proc argument. (@abrom)

- Ruby
Published by bquorning almost 8 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.23.0

  • Add RSpec/Rails/HttpStatus cop to enforce consistent usage of the status format (numeric or symbolic). (@anthony-robin, @jojos003)
  • Fix false negative in RSpec/ReturnFromStub when a constant is being returned by the stub. (@Darhazer)
  • Fix FactoryBot/DynamicAttributeDefinedStatically to handle dynamic attributes inside arrays/hashes. (@abrom)
  • Add FactoryBot/StaticAttributeDefinedDynamically (based on dynamic attribute cop). (@abrom)

- Ruby
Published by bquorning about 8 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.22.2

  • Fix error in RSpec/DescribedClass when working on an empty describe block. (@bquorning)

- Ruby
Published by bquorning about 8 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.22.1

  • Fix false positives in RSpec/ReturnFromStub. (@Darhazer)

- Ruby
Published by bquorning about 8 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.22.0

  • Updates describe_class to account for RSpecs :system wrapper of rails system tests. (@EliseFitz15)
  • Add RSpec/ExpectChange cop to enforce consistent usage of the change matcher. (@Darhazer)
  • Add autocorrect support to RSpec/LetBeforeExamples. (@Darhazer)
  • Fix RSpec/InstanceVariable flagging instance variables inside dynamically defined class. (@Darhazer)
  • Add autocorrect support for RSpec/ReturnFromStub cop. (@bquorning)
  • Add RSpec/ExampleWithoutDescription cop. (@Darhazer)

- Ruby
Published by bquorning about 8 years ago

https://github.com/rubocop/rubocop-rspec - RuboCop RSpec v1.21.0

  • Compatibility with RuboCop v0.52.0. (@bquorning)
  • Improve performance when user does not override default RSpec Pattern config. (@walf443)
  • Add AggregateFailuresByDefault configuration for RSpec/MultipleExpectations cop. (@onk)

- Ruby
Published by bquorning about 8 years ago