File tree Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ RSpec/IdenticalEqualityAssertion:
165
165
Enabled : true
166
166
RSpec/IndexedLet :
167
167
Enabled : true
168
+ RSpec/IsExpectedSpecify :
169
+ Enabled : true
168
170
RSpec/MatchArray :
169
171
Enabled : true
170
172
RSpec/MetadataStyle :
Original file line number Diff line number Diff line change 2
2
3
3
## Master (Unreleased)
4
4
5
+ - Add new ` RSpec/IsExpectedSpecify ` cop. ([ @ydah ] )
5
6
- Add support for ` assert_true ` and ` assert_false ` to ` RSpec/Rails/MinitestAssertions ` . ([ @ydah ] )
6
7
- Support asserts with messages in ` Rspec/BeEmpty ` . ([ @G-Rath ] )
7
8
- Add support for ` assert_empty ` , ` assert_not_empty ` and ` refute_empty ` to ` RSpec/Rails/MinitestAssertions ` . ([ @ydah ] )
Original file line number Diff line number Diff line change @@ -548,6 +548,13 @@ RSpec/InstanceVariable:
548
548
StyleGuide : https://rspec.rubystyle.guide/#instance-variables
549
549
Reference : https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
550
550
551
+ RSpec/IsExpectedSpecify :
552
+ Description : Check for `specify` with `is_expected` and one-liner expectations.
553
+ Enabled : pending
554
+ VersionAdded : " <<next>>"
555
+ StyleGuide : https://rspec.rubystyle.guide/#it-and-specify
556
+ Reference : https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IsExpectedSpecify
557
+
551
558
RSpec/ItBehavesLike :
552
559
Description : Checks that only one `it_behaves_like` style is used.
553
560
Enabled : true
Original file line number Diff line number Diff line change 52
52
* xref:cops_rspec.adoc#rspecindexedlet[RSpec/IndexedLet]
53
53
* xref:cops_rspec.adoc#rspecinstancespy[RSpec/InstanceSpy]
54
54
* xref:cops_rspec.adoc#rspecinstancevariable[RSpec/InstanceVariable]
55
+ * xref:cops_rspec.adoc#rspecisexpectedspecify[RSpec/IsExpectedSpecify]
55
56
* xref:cops_rspec.adoc#rspecitbehaveslike[RSpec/ItBehavesLike]
56
57
* xref:cops_rspec.adoc#rspeciteratedexpectation[RSpec/IteratedExpectation]
57
58
* xref:cops_rspec.adoc#rspecleadingsubject[RSpec/LeadingSubject]
Original file line number Diff line number Diff line change 78
78
require_relative 'rspec/indexed_let'
79
79
require_relative 'rspec/instance_spy'
80
80
require_relative 'rspec/instance_variable'
81
+ require_relative 'rspec/is_expected_specify'
81
82
require_relative 'rspec/it_behaves_like'
82
83
require_relative 'rspec/iterated_expectation'
83
84
require_relative 'rspec/leading_subject'
You can’t perform that action at this time.
0 commit comments