rspec-rails 6.1.3 → 8.0.2
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 +0 -0
- data/Changelog.md +296 -198
- data/README.md +31 -33
- data/lib/generators/rspec/authentication/authentication_generator.rb +25 -0
- data/lib/generators/rspec/authentication/templates/user_spec.rb +5 -0
- data/lib/generators/rspec/authentication/templates/users.yml +11 -0
- data/lib/generators/rspec/install/templates/spec/rails_helper.rb +23 -16
- data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +2 -2
- data/lib/generators/rspec/scaffold/templates/api_request_spec.rb +2 -2
- data/lib/generators/rspec/scaffold/templates/controller_spec.rb +2 -17
- data/lib/generators/rspec/scaffold/templates/index_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/request_spec.rb +2 -17
- data/lib/rspec/rails/configuration.rb +3 -67
- data/lib/rspec/rails/example/rails_example_group.rb +5 -9
- data/lib/rspec/rails/example/system_example_group.rb +41 -36
- data/lib/rspec/rails/fixture_file_upload_support.rb +2 -8
- data/lib/rspec/rails/fixture_support.rb +13 -44
- data/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +10 -3
- data/lib/rspec/rails/matchers/action_cable.rb +6 -1
- data/lib/rspec/rails/matchers/active_job.rb +77 -8
- data/lib/rspec/rails/matchers/have_enqueued_mail.rb +37 -5
- data/lib/rspec/rails/matchers/have_http_status.rb +2 -2
- data/lib/rspec/rails/tasks/rspec.rake +3 -1
- data/lib/rspec/rails/version.rb +1 -1
- data/lib/rspec-rails.rb +20 -11
- data.tar.gz.sig +0 -0
- metadata +37 -39
- metadata.gz.sig +0 -0
- data/lib/generators/rspec/integration/integration_generator.rb +0 -29
metadata
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Chelimsky
|
|
8
8
|
- Andy Lindeman
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain:
|
|
12
11
|
- |
|
|
13
12
|
-----BEGIN CERTIFICATE-----
|
|
14
|
-
|
|
13
|
+
MIIFvjCCA6agAwIBAgIJAPXjfUbCjdXVMA0GCSqGSIb3DQEBCwUAMIGAMQswCQYD
|
|
15
14
|
VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEO
|
|
16
15
|
MAwGA1UECgwFUlNwZWMxEzARBgNVBAMMCnJzcGVjLmluZm8xJTAjBgkqhkiG9w0B
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
CQEWFnJzcGVjQGdvb2dsZWdyb3Vwcy5jb20wHhcNMjUwMjA2MTE0NjU2WhcNMjYw
|
|
17
|
+
MjA2MTE0NjU2WjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24x
|
|
19
18
|
EDAOBgNVBAcMB1NlYXR0bGUxDjAMBgNVBAoMBVJTcGVjMRMwEQYDVQQDDApyc3Bl
|
|
20
19
|
Yy5pbmZvMSUwIwYJKoZIhvcNAQkBFhZyc3BlY0Bnb29nbGVncm91cHMuY29tMIIC
|
|
21
20
|
IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsSmjgcHaKlD0jizRJowi2bGI
|
|
@@ -29,22 +28,21 @@ cert_chain:
|
|
|
29
28
|
Xeh3EVdWY3vMB1pkhPwlsenpcmj5gOzrd54lELOVbCGHCf48iSqeflY2Lhe0pvzK
|
|
30
29
|
blXCJBDmtrebvus291rM/dHcbEfK1SVd5Wut/n131iouf6dnNCFskFygDcgBbthC
|
|
31
30
|
gpEMqf80lEmhX59VUsm0Pv6OEo+ZPHBvXPiJA6DShQh9t3YtpwyA8uV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VQSg6eiEofrMwn/
|
|
43
|
+
AKMCABhZ1Y2eATsfMgdkmIZk7JIPZiSi6eUxPiCMP9M/pw==
|
|
46
44
|
-----END CERTIFICATE-----
|
|
47
|
-
date:
|
|
45
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
48
46
|
dependencies:
|
|
49
47
|
- !ruby/object:Gem::Dependency
|
|
50
48
|
name: actionpack
|
|
@@ -52,42 +50,42 @@ dependencies:
|
|
|
52
50
|
requirements:
|
|
53
51
|
- - ">="
|
|
54
52
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: '
|
|
53
|
+
version: '7.2'
|
|
56
54
|
type: :runtime
|
|
57
55
|
prerelease: false
|
|
58
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
59
57
|
requirements:
|
|
60
58
|
- - ">="
|
|
61
59
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
60
|
+
version: '7.2'
|
|
63
61
|
- !ruby/object:Gem::Dependency
|
|
64
62
|
name: activesupport
|
|
65
63
|
requirement: !ruby/object:Gem::Requirement
|
|
66
64
|
requirements:
|
|
67
65
|
- - ">="
|
|
68
66
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '
|
|
67
|
+
version: '7.2'
|
|
70
68
|
type: :runtime
|
|
71
69
|
prerelease: false
|
|
72
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
71
|
requirements:
|
|
74
72
|
- - ">="
|
|
75
73
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: '
|
|
74
|
+
version: '7.2'
|
|
77
75
|
- !ruby/object:Gem::Dependency
|
|
78
76
|
name: railties
|
|
79
77
|
requirement: !ruby/object:Gem::Requirement
|
|
80
78
|
requirements:
|
|
81
79
|
- - ">="
|
|
82
80
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: '
|
|
81
|
+
version: '7.2'
|
|
84
82
|
type: :runtime
|
|
85
83
|
prerelease: false
|
|
86
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
87
85
|
requirements:
|
|
88
86
|
- - ">="
|
|
89
87
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: '
|
|
88
|
+
version: '7.2'
|
|
91
89
|
- !ruby/object:Gem::Dependency
|
|
92
90
|
name: rspec-core
|
|
93
91
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -164,29 +162,29 @@ dependencies:
|
|
|
164
162
|
requirements:
|
|
165
163
|
- - "~>"
|
|
166
164
|
- !ruby/object:Gem::Version
|
|
167
|
-
version:
|
|
165
|
+
version: 2.3.1
|
|
168
166
|
type: :development
|
|
169
167
|
prerelease: false
|
|
170
168
|
version_requirements: !ruby/object:Gem::Requirement
|
|
171
169
|
requirements:
|
|
172
170
|
- - "~>"
|
|
173
171
|
- !ruby/object:Gem::Version
|
|
174
|
-
version:
|
|
172
|
+
version: 2.3.1
|
|
175
173
|
- !ruby/object:Gem::Dependency
|
|
176
174
|
name: cucumber
|
|
177
175
|
requirement: !ruby/object:Gem::Requirement
|
|
178
176
|
requirements:
|
|
179
|
-
- - "
|
|
177
|
+
- - ">="
|
|
180
178
|
- !ruby/object:Gem::Version
|
|
181
|
-
version: '
|
|
179
|
+
version: '10.0'
|
|
182
180
|
type: :development
|
|
183
181
|
prerelease: false
|
|
184
182
|
version_requirements: !ruby/object:Gem::Requirement
|
|
185
183
|
requirements:
|
|
186
|
-
- - "
|
|
184
|
+
- - ">="
|
|
187
185
|
- !ruby/object:Gem::Version
|
|
188
|
-
version: '
|
|
189
|
-
description: rspec-rails
|
|
186
|
+
version: '10.0'
|
|
187
|
+
description: rspec-rails integrates the Rails testing helpers into RSpec.
|
|
190
188
|
email: rspec@googlegroups.com
|
|
191
189
|
executables: []
|
|
192
190
|
extensions: []
|
|
@@ -199,6 +197,9 @@ files:
|
|
|
199
197
|
- LICENSE.md
|
|
200
198
|
- README.md
|
|
201
199
|
- lib/generators/rspec.rb
|
|
200
|
+
- lib/generators/rspec/authentication/authentication_generator.rb
|
|
201
|
+
- lib/generators/rspec/authentication/templates/user_spec.rb
|
|
202
|
+
- lib/generators/rspec/authentication/templates/users.yml
|
|
202
203
|
- lib/generators/rspec/channel/channel_generator.rb
|
|
203
204
|
- lib/generators/rspec/channel/templates/channel_spec.rb.erb
|
|
204
205
|
- lib/generators/rspec/controller/controller_generator.rb
|
|
@@ -215,7 +216,6 @@ files:
|
|
|
215
216
|
- lib/generators/rspec/helper/templates/helper_spec.rb
|
|
216
217
|
- lib/generators/rspec/install/install_generator.rb
|
|
217
218
|
- lib/generators/rspec/install/templates/spec/rails_helper.rb
|
|
218
|
-
- lib/generators/rspec/integration/integration_generator.rb
|
|
219
219
|
- lib/generators/rspec/job/job_generator.rb
|
|
220
220
|
- lib/generators/rspec/job/templates/job_spec.rb.erb
|
|
221
221
|
- lib/generators/rspec/mailbox/mailbox_generator.rb
|
|
@@ -297,11 +297,10 @@ licenses:
|
|
|
297
297
|
- MIT
|
|
298
298
|
metadata:
|
|
299
299
|
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
|
|
300
|
-
changelog_uri: https://github.com/rspec/rspec-rails/blob/
|
|
300
|
+
changelog_uri: https://github.com/rspec/rspec-rails/blob/v8.0.2/Changelog.md
|
|
301
301
|
documentation_uri: https://rspec.info/documentation/
|
|
302
302
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
|
303
303
|
source_code_uri: https://github.com/rspec/rspec-rails
|
|
304
|
-
post_install_message:
|
|
305
304
|
rdoc_options:
|
|
306
305
|
- "--charset=UTF-8"
|
|
307
306
|
require_paths:
|
|
@@ -310,15 +309,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
310
309
|
requirements:
|
|
311
310
|
- - ">="
|
|
312
311
|
- !ruby/object:Gem::Version
|
|
313
|
-
version:
|
|
312
|
+
version: 3.0.0
|
|
314
313
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
314
|
requirements:
|
|
316
315
|
- - ">="
|
|
317
316
|
- !ruby/object:Gem::Version
|
|
318
317
|
version: '0'
|
|
319
318
|
requirements: []
|
|
320
|
-
rubygems_version: 3.
|
|
321
|
-
signing_key:
|
|
319
|
+
rubygems_version: 3.6.7
|
|
322
320
|
specification_version: 4
|
|
323
321
|
summary: RSpec for Rails
|
|
324
322
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
require 'generators/rspec'
|
|
2
|
-
require 'rspec/core/warnings'
|
|
3
|
-
|
|
4
|
-
module Rspec
|
|
5
|
-
module Generators
|
|
6
|
-
# @private
|
|
7
|
-
class IntegrationGenerator < Base
|
|
8
|
-
class_option :request_specs,
|
|
9
|
-
type: :boolean,
|
|
10
|
-
default: true,
|
|
11
|
-
desc: "Generate request specs"
|
|
12
|
-
|
|
13
|
-
source_paths << File.expand_path('../request/templates', __dir__)
|
|
14
|
-
|
|
15
|
-
def generate_request_spec
|
|
16
|
-
return unless options[:request_specs]
|
|
17
|
-
|
|
18
|
-
RSpec.warn_deprecation <<-WARNING.gsub(/\s*\|/, ' ')
|
|
19
|
-
|The integration generator is deprecated
|
|
20
|
-
|and will be deleted in RSpec-Rails 7.
|
|
21
|
-
|Please use the request generator instead.
|
|
22
|
-
WARNING
|
|
23
|
-
|
|
24
|
-
template 'request_spec.rb',
|
|
25
|
-
target_path('requests', "#{name.underscore.pluralize}_spec.rb")
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|