Skip to content

Releases: rubocop/rubocop-rspec

RuboCop RSpec v1.17.0

14 Sep 20:57
Compare
Choose a tag to compare
  • Add RSpec/Capybara namespace including the first cop for feature specs: Capybara/FeatureMethods. (@rspeicher)
  • Update to RuboCop 0.50.0. (@bquorning)

RuboCop RSpec v1.16.0

06 Sep 16:30
Compare
Choose a tag to compare
  • Add RSpec/FactoryGirl namespace including the first cop for factories: FactoryGirl/DynamicAttributeDefinedStatically. (@jonatas)
  • Add disabled by default RSpec/AlignLeftLetBrace. (@backus)
  • Add disabled by default RSpec/AlignRightLetBrace. (@backus)
  • Add RSpec/LetBeforeExamples cop. (@Darhazer)
  • Add RSpec/MultipleSubjects cop. (@backus)
  • Add RSpec/ReturnFromStub cop. (@Darhazer)
  • Add RSpec/VoidExpect cop. (@pocke)
  • Add RSpec/InvalidPredicateMatcher cop. (@pocke)
  • Change HookArgument cop to detect when hook has a receiver. (@pocke)
  • Add RSpec/PredicateMatcher cop. (@pocke)
  • Add RSpec/ExpectInHook cop. (@pocke)
  • RSpec/MultipleExpectations now detects usage of expect_any_instance_of. (@Darhazer)
  • RSpec/MultipleExpectations now detects usage of is_expected. (@bmorrall)

RuboCop RSpec v1.15.1

30 Apr 08:15
Compare
Choose a tag to compare
  • Fix the handling of various edge cases in the RSpec/ExampleWording cop, including one that would cause autocorrect to crash. (@dgollahon)
  • Fix RSpec/IteratedExpectation crashing when there is an assignment in the iteration. (@Darhazer)
  • Fix false positive in RSpec/SingleArgumentMessageChain cop when the single argument is a hash. (@Darhazer)

RuboCop RSpec v1.15.0

25 Mar 22:27
Compare
Choose a tag to compare
  • Add RSpec/DescribeSymbol cop. (@tsigo)
  • Fix error when RSpec/OverwritingSetup and RSpec/ScatteredLet analyzed empty example groups. (@backus)

RuboCop RSpec v1.14.0

24 Mar 09:39
Compare
Choose a tag to compare
  • Add RSpec/OverwritingSetup cop. (@Darhazer)
  • Add autocorrect support for RSpec/LeadingSubject cop. (@Darhazer)
  • Add RSpec/ScatteredLet cop. (@Darhazer)
  • Add RSpec/IteratedExpectation cop. (@Darhazer)
  • Add RSpec/EmptyLineAfterSubject cop. (@Darhazer)
  • Add RSpec/EmptyLineAfterFinalLet cop. (@Darhazer)

RuboCop RSpec v1.13.0

07 Mar 17:23
Compare
Choose a tag to compare
  • Add repeated 'it' detection to RSpec/ExampleWording cop. (@dgollahon)
  • Add [observed_nesting/max_nesting] info to RSpec/NestedGroups messages. (@dgollahon)
  • Add RSpec/ItBehavesLike cop. (@dgollahon)
  • Add RSpec/SharedContext cop. (@Darhazer)
  • Rspec/MultipleExpectations: Count aggregate_failures block as single expectation. (@Darhazer)
  • Fix ExpectActual cop flagging rspec-rails routing specs. (@backus)
  • Fix FilePath cop not registering offenses for files like spec/blog/user.rb when it should be spec/blog/user_spec.rb. (@backus)

RuboCop RSpec v1.12.0

22 Feb 08:33
Compare
Choose a tag to compare
  • Add RSpec/InstanceSpy cop. (@Darhazer)
  • Add RSpec/BeforeAfterAll for avoiding leaky global test setup. (@cfabianski)

RuboCop RSpec v1.11.0

16 Feb 19:44
Compare
Choose a tag to compare
  • Add AroundBlock cop. (@Darhazer)
  • Add EnforcedStyle configuration for RSpec/DescribedClass cop. (@Darhazer)
  • Fix false positive for RSpec/RepeatedExample cop. (@redross)

RuboCop RSpec v1.10.0

16 Jan 07:31
Compare
Choose a tag to compare
  • Fix false negative for RSpec/MessageSpies cop. (@onk)
  • Fix internal dependencies on RuboCop to be compatible with 0.47 release. (@backus)
  • Add autocorrect support for SingleArgumentMessageChain cop. (@bquorning)
  • Rename NestedGroups' configuration key from MaxNesting to Max in order to be consistent with other cop configuration. (@backus)
  • Add RepeatedExample cop for detecting repeated examples within example groups. (@backus)
  • Add ScatteredSetup cop for enforcing that only one before, around, and after hook are used per example group scope. (@backus)
  • Add ExpectOutput cop for recommending expect { ... }.to output(...).to_stdout. (@backus)

RuboCop RSpec v1.9.1

03 Jan 08:03
Compare
Choose a tag to compare
  • Fix unintentional regression change in NestedGroups reported in #270. (@backus)
  • Change MaxNesting for NestedGroups from 2 to 3. (@backus)