Skip to content

Commit 6111d8a

Browse files
authored
Merge pull request #1819 from rubocop/release
Bump version to v2.27
2 parents 1a582da + 14db303 commit 6111d8a

File tree

5 files changed

+17
-23
lines changed

5 files changed

+17
-23
lines changed

CHANGELOG.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22

33
## Master (Unreleased)
44

5+
## 2.27.0 (2024-03-01)
6+
57
- Add new `RSpec/IsExpectedSpecify` cop. ([@ydah])
6-
- Add support for `assert_true` and `assert_false` to `RSpec/Rails/MinitestAssertions`. ([@ydah])
8+
- Add new `RSpec/RepeatedSubjectCall` cop. ([@drcapulet])
9+
- Add support for `assert_true`, `assert_false`, `assert_not_equal`, `assert_not_nil`, `*_empty`, `*_predicate`, `*_kind_of`, `*_in_delta`, `*_match`, `*_instance_of` and `*_includes` assertions in `RSpec/Rails/MinitestAssertions`. ([@ydah], [@G-Rath])
710
- Support asserts with messages in `Rspec/BeEmpty`. ([@G-Rath])
8-
- Add support for `assert_empty`, `assert_not_empty` and `refute_empty` to `RSpec/Rails/MinitestAssertions`. ([@ydah])
9-
- Support correcting some `*_predicate` assertions in `RSpec/Rails/MinitestAssertions`. ([@G-Rath])
10-
- Support correcting `*_kind_of` assertions in `RSpec/Rails/MinitestAssertions`. ([@G-Rath])
11-
- Support correcting `*_in_delta` assertions in `RSpec/Rails/MinitestAssertions`. ([@G-Rath])
12-
- Support correcting `*_match` assertions in `RSpec/Rails/MinitestAssertions`. ([@G-Rath])
13-
- Support correcting `*_instance_of` assertions in `RSpec/Rails/MinitestAssertions`. ([@G-Rath])
14-
- Support correcting `*_includes` assertions in `RSpec/Rails/MinitestAssertions`. ([@G-Rath])
15-
- Support correcting `assert_not_equal` and `assert_not_nil` in `RSpec/Rails/MinitestAssertions`. ([@G-Rath])
1611
- Fix a false positive for `RSpec/ExpectActual` when used with rspec-rails routing matchers. ([@naveg])
17-
- Add new `RSpec/RepeatedSubjectCall` cop. ([@drcapulet])
1812
- Add configuration option `ResponseMethods` to `RSpec/Rails/HaveHttpStatus`. ([@ydah])
1913
- Fix a false negative for `RSpec/DescribedClass` when class with constant. ([@ydah])
2014
- Fix a false positive for `RSpec/ExampleWithoutDescription` when `specify` with multi-line block and missing description. ([@ydah])

config/default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ RSpec/InstanceVariable:
551551
RSpec/IsExpectedSpecify:
552552
Description: Check for `specify` with `is_expected` and one-liner expectations.
553553
Enabled: pending
554-
VersionAdded: "<<next>>"
554+
VersionAdded: '2.27'
555555
StyleGuide: https://rspec.rubystyle.guide/#it-and-specify
556556
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IsExpectedSpecify
557557

@@ -823,7 +823,7 @@ RSpec/RepeatedIncludeExample:
823823
RSpec/RepeatedSubjectCall:
824824
Description: Checks for repeated calls to subject missing that it is memoized.
825825
Enabled: pending
826-
VersionAdded: "<<next>>"
826+
VersionAdded: '2.27'
827827
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedSubjectCall
828828

829829
RSpec/ReturnFromStub:
@@ -1144,7 +1144,7 @@ RSpec/Rails/HaveHttpStatus:
11441144
- last_response
11451145
SafeAutoCorrect: false
11461146
VersionAdded: '2.12'
1147-
VersionChanged: "<<next>>"
1147+
VersionChanged: '2.27'
11481148
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HaveHttpStatus
11491149

11501150
RSpec/Rails/HttpStatus:

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.27'
44
nav:
55
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_rspecrails.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
| Pending
1515
| Yes
16-
| Yes
16+
| Always
1717
| 2.4
1818
| -
1919
|===
@@ -46,9 +46,9 @@ end
4646
4747
| Pending
4848
| Yes
49-
| Yes (Unsafe)
49+
| Always (Unsafe)
5050
| 2.12
51-
| <<next>>
51+
| 2.27
5252
|===
5353
5454
Checks that tests use `have_http_status` instead of equality matchers.
@@ -104,7 +104,7 @@ expect(last_response).to have_http_status(200)
104104
105105
| Enabled
106106
| Yes
107-
| Yes
107+
| Always
108108
| 1.23
109109
| 2.20
110110
|===
@@ -192,7 +192,7 @@ it { is_expected.to have_http_status :error }
192192
193193
| Pending
194194
| No
195-
| Yes (Unsafe)
195+
| Always (Unsafe)
196196
| 2.14
197197
| -
198198
|===
@@ -275,7 +275,7 @@ end
275275
276276
| Pending
277277
| Yes
278-
| Yes
278+
| Always
279279
| 2.17
280280
| -
281281
|===
@@ -321,7 +321,7 @@ expect(a).to be(false)
321321
322322
| Pending
323323
| No
324-
| Yes (Unsafe)
324+
| Always (Unsafe)
325325
| 2.23
326326
| -
327327
|===
@@ -384,7 +384,7 @@ expect(foo).to be_invalid.or be_even
384384
385385
| Pending
386386
| No
387-
| Yes (Unsafe)
387+
| Always (Unsafe)
388388
| 2.19
389389
| -
390390
|===

lib/rubocop/rspec_rails/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.26.1'
7+
STRING = '2.27.0'
88
end
99
end
1010
end

0 commit comments

Comments
 (0)