rspec-rails 8.0.2 → 8.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data/Changelog.md +15 -1
- data/README.md +9 -2
- data/lib/generators/rspec/install/templates/spec/rails_helper.rb +1 -1
- data/lib/rspec/rails/example/view_example_group.rb +1 -1
- data/lib/rspec/rails/matchers/send_email.rb +1 -1
- data/lib/rspec/rails/version.rb +1 -1
- data/lib/rspec-rails.rb +13 -11
- data.tar.gz.sig +0 -0
- metadata +57 -33
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ea5e1efd516957457c57cb6bdca9671311c3cfdb61fdeb7dde0ac8d22a738a0
|
|
4
|
+
data.tar.gz: e259902dc944947df43ebcd366336da441aa6ff4e9f1000c7069e35ef3f46709
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de16baa1ffc615c35e6237eca5e42958fbcd8e6e00bb61a6db7312c9d78e66b99666e30ff8228cf07fb70e6665a5cce67b0404fd423f9b56bf7cbc484320eea8
|
|
7
|
+
data.tar.gz: 1e65f6ccad8ca65adc2c6e46178b50b38d6ddf0a361d762d5557007a7311788f024f6d144f53cc13bb62776c1bfa8d2d08e4639c1b21630d86a5d2c3b9e96efc
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
��1�������n��G��Xن_Z���֎�D�Pm���aN=�!?�*7P����x�����C�N3n(�տ|�՟֗�
|
|
2
|
+
xo�L��� �B��y�0�q~��*���=�pP������#�pqe�-:�7�'�E��^7@y$�j��=���n����AԚzv�C�4sH�U�UL�ύ���9C8�x&����"X��;�����Q*��Iwr9����b�R�vw|&�e{R<��(�$>�,�cu��pR��0��1�[�`�3�������)~��=Q6����5I�ߠm��RA^qXH,siA�ݰ�U�u�2���D��a��uf�{��U" �Ŧ�ʡvx��l����m�\��)�#� �)dV��^a�,�?��]�bަ l��@&�V����Ky��C�lhQ�ϑnW�Cg�u@�.����F�ޓ~t%,�lj�����������D�r¨T�~�2�
|
|
3
|
+
�^,Ԏ?EX�X&�2$�^� ��)~���rp�=f�
|
data/Changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
### Development
|
|
2
|
-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.
|
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.4...8-0-maintenance)
|
|
3
|
+
|
|
4
|
+
### 8.0.4 / 2026-03-10
|
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.3...v8.0.4)
|
|
6
|
+
|
|
7
|
+
Released to relax version constraint for rspec to allow 4.0.0.beta1.
|
|
8
|
+
|
|
9
|
+
### 8.0.3 / 2026-02-17
|
|
10
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.2...v8.0.3)
|
|
11
|
+
|
|
12
|
+
Bug Fixes:
|
|
13
|
+
|
|
14
|
+
* Fix insertion order of controller prefix in the view `lookup_context`. (Stephen Nelson, #2749)
|
|
15
|
+
* Ensure `rails stats` looks for specs using application root rather than working directory.
|
|
16
|
+
(Marvin Tangpos, #2879)
|
|
3
17
|
|
|
4
18
|
### 8.0.2 / 2025-08-12
|
|
5
19
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.1...v8.0.2)
|
data/README.md
CHANGED
|
@@ -8,7 +8,14 @@ They’re also specifications (or _specs,_ for short):
|
|
|
8
8
|
detailed explanations of how the application is supposed to behave,
|
|
9
9
|
expressed in plain English.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Supported Versions
|
|
12
|
+
|
|
13
|
+
We follow a versioning strategy as defined by [RSpec Rails versioning strategy][] the
|
|
14
|
+
TL;DR of which is that we support currently supported versions of Rails, and will
|
|
15
|
+
issue a major version change when removing older versions from support.
|
|
16
|
+
|
|
17
|
+
Accordingly you should use:
|
|
18
|
+
|
|
12
19
|
* **[`rspec-rails` 8.x][]** for Rails 8.0 or 7.2.
|
|
13
20
|
* **[`rspec-rails` 7.x][]** for Rails 7.x.
|
|
14
21
|
* **[`rspec-rails` 6.x][]** for Rails 6.1, 7.0 or 7.1.
|
|
@@ -30,7 +37,7 @@ According to [RSpec Rails new versioning strategy][] use:
|
|
|
30
37
|
[`rspec-rails` 6.x]: https://github.com/rspec/rspec-rails/tree/6-1-maintenance
|
|
31
38
|
[`rspec-rails` 7.x]: https://github.com/rspec/rspec-rails/tree/7-1-maintenance
|
|
32
39
|
[`rspec-rails` 8.x]: https://github.com/rspec/rspec-rails/tree/8-0-maintenance
|
|
33
|
-
[RSpec Rails
|
|
40
|
+
[RSpec Rails versioning strategy]: https://github.com/rspec/rspec-rails/blob/main/rfcs/versioning-strategy.md
|
|
34
41
|
|
|
35
42
|
## Installation
|
|
36
43
|
|
|
@@ -77,7 +77,7 @@ RSpec.configure do |config|
|
|
|
77
77
|
# The different available types are documented in the features, such as in
|
|
78
78
|
# https://rspec.info/features/8-0/rspec-rails
|
|
79
79
|
#
|
|
80
|
-
# You can also
|
|
80
|
+
# You can also infer these behaviours automatically by location, e.g.
|
|
81
81
|
# /spec/models would pull in the same behaviour as `type: :model` but this
|
|
82
82
|
# behaviour is considered legacy and will be removed in a future version.
|
|
83
83
|
#
|
data/lib/rspec/rails/version.rb
CHANGED
data/lib/rspec-rails.rb
CHANGED
|
@@ -12,17 +12,19 @@ module RSpec
|
|
|
12
12
|
|
|
13
13
|
# As of Rails 8.0.0 you can register directories to work with `rails stats`
|
|
14
14
|
if ::Rails::VERSION::STRING >= "8.0.0"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
initializer "rspec_rails.code_statistics" do
|
|
16
|
+
require 'rails/code_statistics'
|
|
17
|
+
|
|
18
|
+
root = ::Rails.root
|
|
19
|
+
dirs = Dir[root.join('spec', '**', '*_spec.rb').to_s]
|
|
20
|
+
.map { |f| f.sub(%r{^#{Regexp.escape(root.to_s)}/(spec/\w+)/.*}, '\\1') }
|
|
21
|
+
.uniq
|
|
22
|
+
.select { |f| File.directory?(root.join(f)) }
|
|
23
|
+
|
|
24
|
+
Hash[dirs.map { |d| [d.split('/').last, d] }].each do |type, dir|
|
|
25
|
+
name = type.singularize.capitalize
|
|
26
|
+
::Rails::CodeStatistics.register_directory "#{name} specs", root.join(dir).to_s, test_directory: true
|
|
27
|
+
end
|
|
26
28
|
end
|
|
27
29
|
end
|
|
28
30
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.0.
|
|
4
|
+
version: 8.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Chelimsky
|
|
@@ -10,11 +10,11 @@ bindir: bin
|
|
|
10
10
|
cert_chain:
|
|
11
11
|
- |
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
|
13
|
-
|
|
13
|
+
MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXWMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
|
|
14
14
|
VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO
|
|
15
15
|
MAwGA1UECgwFUlNwZWMxEzARBgNVBAMMCnJzcGVjLmluZm8xJTAjBgkqhkiG9w0B
|
|
16
|
-
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37
|
+
swFA8bEKMQWqRlupuRmEiy3nGe6az46YlPXzK5UWfXJ6Lb1wIE8W80TRx0HpSC7j
|
|
38
|
+
JfXPfQ0PLgiU4nnQqain2bIn96Ooco8kspeqp8rSJ8sbaMPTNmcFuwD3gzWsRnJ3
|
|
39
|
+
rIaJbmrUcq6DlJ7jfv3u5TPt4JWzDP7oDPf3nXNiF2Cn48Ne598G5lHH6Heyxe39
|
|
40
|
+
pYZdhEptKJWPHxbJWHXD02omKprkNuQKHpnXrW+mmbiO4IcqAMggiud+DaEQg20x
|
|
41
|
+
Dae4cNbvK5p3D+5xqvcEO2G4uCMDmJjrSd61kvTLBnm1qroHqrpi9GauEVWZZmD0
|
|
42
|
+
n0ph8oFAXOsKQWxZ+4uh6yGISk+WhngCZEVPZUjq7SIGAuVhQy2ZgwdjnLEz//lD
|
|
43
|
+
x0Qexp5yGeoxAL9qKM/RXYKtuRZBJV1z+L9A1YOtwaXXNg==
|
|
44
44
|
-----END CERTIFICATE-----
|
|
45
45
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
46
46
|
dependencies:
|
|
@@ -90,58 +90,82 @@ dependencies:
|
|
|
90
90
|
name: rspec-core
|
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
|
-
- - "
|
|
93
|
+
- - ">="
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: 3.13.0
|
|
96
|
+
- - "<"
|
|
94
97
|
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
98
|
+
version: 5.0.0
|
|
96
99
|
type: :runtime
|
|
97
100
|
prerelease: false
|
|
98
101
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
102
|
requirements:
|
|
100
|
-
- - "
|
|
103
|
+
- - ">="
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: 3.13.0
|
|
106
|
+
- - "<"
|
|
101
107
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
108
|
+
version: 5.0.0
|
|
103
109
|
- !ruby/object:Gem::Dependency
|
|
104
110
|
name: rspec-expectations
|
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
|
106
112
|
requirements:
|
|
107
|
-
- - "
|
|
113
|
+
- - ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: 3.13.0
|
|
116
|
+
- - "<"
|
|
108
117
|
- !ruby/object:Gem::Version
|
|
109
|
-
version:
|
|
118
|
+
version: 5.0.0
|
|
110
119
|
type: :runtime
|
|
111
120
|
prerelease: false
|
|
112
121
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
122
|
requirements:
|
|
114
|
-
- - "
|
|
123
|
+
- - ">="
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: 3.13.0
|
|
126
|
+
- - "<"
|
|
115
127
|
- !ruby/object:Gem::Version
|
|
116
|
-
version:
|
|
128
|
+
version: 5.0.0
|
|
117
129
|
- !ruby/object:Gem::Dependency
|
|
118
130
|
name: rspec-mocks
|
|
119
131
|
requirement: !ruby/object:Gem::Requirement
|
|
120
132
|
requirements:
|
|
121
|
-
- - "
|
|
133
|
+
- - ">="
|
|
134
|
+
- !ruby/object:Gem::Version
|
|
135
|
+
version: 3.13.0
|
|
136
|
+
- - "<"
|
|
122
137
|
- !ruby/object:Gem::Version
|
|
123
|
-
version:
|
|
138
|
+
version: 5.0.0
|
|
124
139
|
type: :runtime
|
|
125
140
|
prerelease: false
|
|
126
141
|
version_requirements: !ruby/object:Gem::Requirement
|
|
127
142
|
requirements:
|
|
128
|
-
- - "
|
|
143
|
+
- - ">="
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: 3.13.0
|
|
146
|
+
- - "<"
|
|
129
147
|
- !ruby/object:Gem::Version
|
|
130
|
-
version:
|
|
148
|
+
version: 5.0.0
|
|
131
149
|
- !ruby/object:Gem::Dependency
|
|
132
150
|
name: rspec-support
|
|
133
151
|
requirement: !ruby/object:Gem::Requirement
|
|
134
152
|
requirements:
|
|
135
|
-
- - "
|
|
153
|
+
- - ">="
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: 3.13.0
|
|
156
|
+
- - "<"
|
|
136
157
|
- !ruby/object:Gem::Version
|
|
137
|
-
version:
|
|
158
|
+
version: 5.0.0
|
|
138
159
|
type: :runtime
|
|
139
160
|
prerelease: false
|
|
140
161
|
version_requirements: !ruby/object:Gem::Requirement
|
|
141
162
|
requirements:
|
|
142
|
-
- - "
|
|
163
|
+
- - ">="
|
|
164
|
+
- !ruby/object:Gem::Version
|
|
165
|
+
version: 3.13.0
|
|
166
|
+
- - "<"
|
|
143
167
|
- !ruby/object:Gem::Version
|
|
144
|
-
version:
|
|
168
|
+
version: 5.0.0
|
|
145
169
|
- !ruby/object:Gem::Dependency
|
|
146
170
|
name: ammeter
|
|
147
171
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -297,7 +321,7 @@ licenses:
|
|
|
297
321
|
- MIT
|
|
298
322
|
metadata:
|
|
299
323
|
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
|
|
300
|
-
changelog_uri: https://github.com/rspec/rspec-rails/blob/v8.0.
|
|
324
|
+
changelog_uri: https://github.com/rspec/rspec-rails/blob/v8.0.4/Changelog.md
|
|
301
325
|
documentation_uri: https://rspec.info/documentation/
|
|
302
326
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
|
303
327
|
source_code_uri: https://github.com/rspec/rspec-rails
|
|
@@ -316,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
316
340
|
- !ruby/object:Gem::Version
|
|
317
341
|
version: '0'
|
|
318
342
|
requirements: []
|
|
319
|
-
rubygems_version: 3.6.
|
|
343
|
+
rubygems_version: 3.6.9
|
|
320
344
|
specification_version: 4
|
|
321
345
|
summary: RSpec for Rails
|
|
322
346
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|