rubocop-rspec 2.23.0 → 2.23.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0eebbfb772c1598b0ee4cfe88c74d8b81171e197dbd4d5dc6020df95005440e
4
- data.tar.gz: 2936be502e0062b94a0346bd98696194fd33fe6f7693f8c92bc38a952ee31b26
3
+ metadata.gz: 2d8e118064ce45e0670b72b711b2e680f511f645997f86c9d22dcf9f0eb564d7
4
+ data.tar.gz: 8a0a510f390617e4e83e99bdbec1bc0146eb06b1b61c51aada05721154a6be43
5
5
  SHA512:
6
- metadata.gz: 14e3e53093b7e104ab212217fdc8226a909fba9bdd84fa44c22963cf8e62d17ce858a2180b8b5b3727b5dd2a74a9b4c6e2139d8d61cbc6595b2c46f9022214af
7
- data.tar.gz: 9408c50d35ae50e1825fef43f2c6a6def0d87e44bfbbd968bb19996b1a867f215df36ab62d451af892e6855c4330c0d4fb9d09b8400ff5f35b4ecef1cfb86adb
6
+ metadata.gz: 4a1f937488b43fe96496ec87d1a6fcc1d53385248937de31d1fb4a7923dd98a2769d225e23b7e8d5bd66c7c6e2c38fb5b3652c2792087f00999464a7161561fb
7
+ data.tar.gz: 9b2fed4ef2b93e9ac867133aaa11efdfd66cea642416cd82cc2ca322875154c6a3f174991f1a2c49cf762cfcf9c0aa17635348ce5e8ff8c300103b8c727d33c1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 2.23.1 (2023-08-07)
6
+
7
+ - Mark to `Safe: false` for `RSpec/Rails/NegationBeValid` cop. ([@ydah])
8
+ - Declare autocorrect as unsafe for `RSpec/ReceiveMessages`. ([@bquorning])
9
+
5
10
  ## 2.23.0 (2023-07-30)
6
11
 
7
12
  - Add new `RSpec/Rails/NegationBeValid` cop. ([@ydah])
data/config/default.yml CHANGED
@@ -733,6 +733,7 @@ RSpec/ReceiveCounts:
733
733
  RSpec/ReceiveMessages:
734
734
  Description: Checks for multiple messages stubbed on the same object.
735
735
  Enabled: pending
736
+ SafeAutoCorrect: false
736
737
  VersionAdded: '2.23'
737
738
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveMessages
738
739
 
@@ -1108,6 +1109,7 @@ RSpec/Rails/MinitestAssertions:
1108
1109
 
1109
1110
  RSpec/Rails/NegationBeValid:
1110
1111
  Description: Enforces use of `be_invalid` or `not_to` for negated be_valid.
1112
+ Safe: false
1111
1113
  EnforcedStyle: not_to
1112
1114
  SupportedStyles:
1113
1115
  - not_to
@@ -6,6 +6,10 @@ module RuboCop
6
6
  module Rails
7
7
  # Enforces use of `be_invalid` or `not_to` for negated be_valid.
8
8
  #
9
+ # @safety
10
+ # This cop is unsafe because it cannot guarantee that
11
+ # the test target is an instance of `ActiveModel::Validations``.
12
+ #
9
13
  # @example EnforcedStyle: not_to (default)
10
14
  # # bad
11
15
  # expect(foo).to be_invalid
@@ -5,6 +5,11 @@ module RuboCop
5
5
  module RSpec
6
6
  # Checks for multiple messages stubbed on the same object.
7
7
  #
8
+ # @safety
9
+ # The autocorrection is marked as unsafe, because it may change the
10
+ # order of stubs. This in turn may cause e.g. variables to be called
11
+ # before they are defined.
12
+ #
8
13
  # @example
9
14
  # # bad
10
15
  # before do
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module RSpec
5
5
  # Version information for the RSpec RuboCop plugin.
6
6
  module Version
7
- STRING = '2.23.0'
7
+ STRING = '2.23.1'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.0
4
+ version: 2.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Backus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-07-30 00:00:00.000000000 Z
13
+ date: 2023-08-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop