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.9.0

Published by bquorning over 2 years ago

rubocop-rspec - RuboCop RSpec v2.8.0

Published by bquorning over 2 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v2.7.0

Published by bquorning almost 3 years ago

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

Published by bquorning almost 3 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v2.5.0

Published by Darhazer about 3 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v2.4.0

Published by bquorning over 3 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v2.3.0

Published by bquorning over 3 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v2.2.0

Published by bquorning over 3 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v2.1.0

Published by bquorning almost 4 years ago

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

Published by bquorning almost 4 years ago

  • Fixed infinite loop in RSpec/ExpectActual autocorrection when both expected and actual values are literals. (@Darhazer)
rubocop-rspec - RuboCop RSpec v2.0.0

Published by bquorning almost 4 years ago

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

rubocop-rspec - RuboCop RSpec v2.0.0.pre

Published by bquorning almost 4 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v1.44.1

Published by bquorning almost 4 years ago

rubocop-rspec - RuboCop RSpec v1.44.0

Published by bquorning almost 4 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v1.43.2

Published by bquorning about 4 years ago

  • Fix RSpec/FilePath when checking a file with a shared example. (@pirj)
  • Fix subject nesting detection in RSpec/LeadingSubject. (@pirj)
rubocop-rspec - RuboCop RSpec v1.43.1

Published by bquorning about 4 years ago

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

rubocop-rspec - RuboCop RSpec v1.43.0

Published by bquorning about 4 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v1.42.0

Published by bquorning over 4 years ago

  • Update RuboCop dependency to 0.87.0 because of changes to internal APIs. (@bquorning, @Darhazer)
rubocop-rspec - RuboCop RSpec v1.41.0

Published by bquorning over 4 years ago

  • 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)
rubocop-rspec - RuboCop RSpec v1.40.0

Published by bquorning over 4 years ago

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