Skip to content

Commit 454ec6d

Browse files
authored
Merge pull request #1600 from rubocop/release
Bump version to v2.20.0
2 parents 7e2a570 + 8369393 commit 454ec6d

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22

33
## Master (Unreleased)
44

5-
- Add support `be_status` style for `RSpec/Rails/HttpStatus`. ([@ydah])
6-
- Fix a false positive for `RSpec/DescribedClassModuleWrapping` when RSpec.describe numblock is nested within a module. ([@ydah])
5+
## 2.20.0 (2023-04-18)
6+
77
- Add new `RSpec/IndexedLet` cop. ([@dmitrytsepelev])
8+
- Add new `RSpec/BeEmpty` cop. ([@ydah], [@bquorning])
9+
- Add autocorrect support for `RSpec/ScatteredSetup`. ([@ydah])
10+
- Add support `be_status` style for `RSpec/Rails/HttpStatus`. ([@ydah])
11+
- Add support for shared example groups to `RSpec/EmptyLineAfterExampleGroup`. ([@pirj])
12+
- Add support for `RSpec/HaveHttpStatus` when using `response.code`. ([@ydah])
813
- Fix order of expected and actual in correction for `RSpec/Rails/MinitestAssertions` ([@mvz])
14+
- Fix a false positive for `RSpec/DescribedClassModuleWrapping` when RSpec.describe numblock is nested within a module. ([@ydah])
915
- Fix a false positive for `RSpec/FactoryBot/ConsistentParenthesesStyle` inside `&&`, `||` and `:?` when `omit_parentheses` is on ([@dmitrytsepelev])
1016
- Fix a false positive for `RSpec/PendingWithoutReason` when pending/skip has a reason inside an example group. ([@ydah])
17+
- Fix a false negative for `RSpec/RedundantAround` when redundant numblock `around`. ([@ydah])
1118
- Change `RSpec/ContainExactly` to ignore calls with no arguments, and change `RSpec/MatchArray` to ignore calls with an empty array literal argument. ([@ydah], [@bquorning])
12-
- Add new `RSpec/BeEmpty` cop. ([@ydah], [@bquorning])
1319
- Make `RSpec/MatchArray` and `RSpec/ContainExactly` pending. ([@ydah])
14-
- Add autocorrect support for `RSpec/ScatteredSetup`. ([@ydah])
15-
- Fix a false negative for `RSpec/RedundantAround` when redundant numblock `around`. ([@ydah])
16-
- Add support for shared example groups to `RSpec/EmptyLineAfterExampleGroup`. ([@pirj])
17-
- Add support for `RSpec/HaveHttpStatus` when using `response.code`. ([@ydah])
1820

1921
## 2.19.0 (2023-03-06)
2022

config/default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ RSpec/Be:
147147
RSpec/BeEmpty:
148148
Description: Prefer using `be_empty` when checking for an empty array.
149149
Enabled: pending
150-
VersionAdded: "<<next>>"
150+
VersionAdded: '2.20'
151151
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEmpty
152152

153153
RSpec/BeEq:
@@ -512,7 +512,7 @@ RSpec/ImplicitSubject:
512512
RSpec/IndexedLet:
513513
Description: Do not set up test data using indexes (e.g., `item_1`, `item_2`).
514514
Enabled: pending
515-
VersionAdded: "<<next>>"
515+
VersionAdded: '2.20'
516516
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IndexedLet
517517
Max: 1
518518

@@ -1063,7 +1063,7 @@ RSpec/Rails/HttpStatus:
10631063
- symbolic
10641064
- be_status
10651065
VersionAdded: '1.23'
1066-
VersionChanged: "<<next>>"
1066+
VersionChanged: '2.20'
10671067
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HttpStatus
10681068

10691069
RSpec/Rails/InferredSpecType:

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rubocop-rspec
22
title: RuboCop RSpec
3-
version: ~
3+
version: '2.20'
44
nav:
55
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rspec.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ expect(foo).to be(true)
194194
| Pending
195195
| Yes
196196
| Yes
197-
| <<next>>
197+
| 2.20
198198
| -
199199
|===
200200

@@ -2463,7 +2463,7 @@ it { expect(named_subject).to be_truthy }
24632463
| Pending
24642464
| Yes
24652465
| No
2466-
| <<next>>
2466+
| 2.20
24672467
| -
24682468
|===
24692469

docs/modules/ROOT/pages/cops_rspec_rails.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ expect(response).to have_http_status(200)
7272
| Yes
7373
| Yes
7474
| 1.23
75-
| <<next>>
75+
| 2.20
7676
|===
7777

7878
Enforces use of symbolic or numeric value to describe HTTP status.

lib/rubocop/rspec/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module RuboCop
44
module RSpec
55
# Version information for the RSpec RuboCop plugin.
66
module Version
7-
STRING = '2.19.0'
7+
STRING = '2.20.0'
88
end
99
end
1010
end

0 commit comments

Comments
 (0)