File tree Expand file tree Collapse file tree 7 files changed +1
-120
lines changed Expand file tree Collapse file tree 7 files changed +1
-120
lines changed Original file line number Diff line number Diff line change 33## Master (Unreleased)
44
55* Remove deprecated class ` ::RuboCop::Cop::RSpec::Cop ` . ([ @bquorning ] [ ] )
6+ * Retire ` RSpec/InvalidPredicateMatcher ` cop. ([ @pirj ] [ ] )
67
78## 2.0.0.pre (2020-10-22)
89
Original file line number Diff line number Diff line change @@ -315,12 +315,6 @@ RSpec/InstanceVariable:
315315 VersionChanged : ' 1.7'
316316 StyleGuide : https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
317317
318- RSpec/InvalidPredicateMatcher :
319- Description : Checks invalid usage for predicate matcher.
320- Enabled : true
321- VersionAdded : ' 1.16'
322- StyleGuide : https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InvalidPredicateMatcher
323-
324318RSpec/ItBehavesLike :
325319 Description : Checks that only one `it_behaves_like` style is used.
326320 Enabled : true
Original file line number Diff line number Diff line change 4040* xref:cops_rspec.adoc#rspecimplicitsubject[RSpec/ImplicitSubject]
4141* xref:cops_rspec.adoc#rspecinstancespy[RSpec/InstanceSpy]
4242* xref:cops_rspec.adoc#rspecinstancevariable[RSpec/InstanceVariable]
43- * xref:cops_rspec.adoc#rspecinvalidpredicatematcher[RSpec/InvalidPredicateMatcher]
4443* xref:cops_rspec.adoc#rspecitbehaveslike[RSpec/ItBehavesLike]
4544* xref:cops_rspec.adoc#rspeciteratedexpectation[RSpec/IteratedExpectation]
4645* xref:cops_rspec.adoc#rspecleadingsubject[RSpec/LeadingSubject]
Original file line number Diff line number Diff line change @@ -1984,38 +1984,6 @@ end
19841984
19851985* https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
19861986
1987- == RSpec/InvalidPredicateMatcher
1988-
1989- |===
1990- | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
1991-
1992- | Enabled
1993- | Yes
1994- | No
1995- | 1.16
1996- | -
1997- |===
1998-
1999- Checks invalid usage for predicate matcher.
2000-
2001- Predicate matcher does not need a question.
2002- This cop checks an unnecessary question in predicate matcher.
2003-
2004- === Examples
2005-
2006- [source,ruby]
2007- ----
2008- # bad
2009- expect(foo).to be_something?
2010-
2011- # good
2012- expect(foo).to be_something
2013- ----
2014-
2015- === References
2016-
2017- * https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InvalidPredicateMatcher
2018-
20191987== RSpec/ItBehavesLike
20201988
20211989|===
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5252require_relative 'rspec/implicit_subject'
5353require_relative 'rspec/instance_spy'
5454require_relative 'rspec/instance_variable'
55- require_relative 'rspec/invalid_predicate_matcher'
5655require_relative 'rspec/it_behaves_like'
5756require_relative 'rspec/iterated_expectation'
5857require_relative 'rspec/leading_subject'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments