rspec-rails 8.0.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08c9fcbd99484f0483c170223cf76299aabd55600e8559a8ce79c7d3e75afbf8'
4
- data.tar.gz: bc141422cea3d73f476c5ac7fbb93a95bdc0c42549bbc17d01842fc8bc66da17
3
+ metadata.gz: f91cdd755050320a56d2b22f9a71dce0e3a08531bca816bfa46939fb95382e80
4
+ data.tar.gz: 58b0416057f161a577a7d855217aca33e53afbba730eb7e785fcd7042300d8ae
5
5
  SHA512:
6
- metadata.gz: 4a92d84a15c6e7a807e71c56a2d0eced926b9574a39757889f9c79b2b72b0f3db51d357dd36cb77a73f8da2401c378a533904c25946bff5f3e16d302cdc57b6b
7
- data.tar.gz: 937cd70667b298c09c65cd711752642c0de703737229e99eea09829b392fe8a6ddf3f9e094d1fab758cbc622d37e9b4a0718f52a275ce089d74cae4faa7d46f2
6
+ metadata.gz: 1257f664e0336b60421ac0823fed2a63ab9fedbb08133c48a133047c49b1360a8686fcba4d4537c69598dd9b2ce1ec6edd969840b020d8f245f38771be294e87
7
+ data.tar.gz: 95a25f36d5bb3c1f669bedc0511eedfa461ff729162dcaecba2101e983921a1f2b4a053ef53c68fa43a12134b7b77b4df61746153ee157bb9cda348372754d2c
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,7 +1,25 @@
1
1
  ### Development
2
- [Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.1.1...v8.0.0)
2
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.2...8-0-maintenance)
3
+
4
+ ### 8.0.2 / 2025-08-12
5
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.1...v8.0.2)
6
+
7
+ Bug Fixes:
8
+
9
+ * Fix scaffold generator producing deprecated Rack http statuses.
10
+ (Taketo Takashima, rspec/rspec-rails#2860)
11
+
12
+ ### 8.0.1 / 2025-06-19
13
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.0...v8.0.1)
14
+
15
+ Bug Fixes:
16
+
17
+ * Make the `have_been_performed` / `have_been_enqueued` return `false` for
18
+ `supports_block_expectations?` as they don't supporting block expectations.
19
+ (Sam Kidman, rspec/rspec-rails#2851)
3
20
 
4
21
  ### 8.0.0 / 2025-04-30
22
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.1.1...v8.0.0)
5
23
 
6
24
  Enhancements:
7
25
 
@@ -79,7 +79,7 @@ RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:control
79
79
  context "with invalid params" do
80
80
  it "renders a JSON response with errors for the new <%= singular_table_name %>" do
81
81
  post :create, params: {<%= singular_table_name %>: invalid_attributes}, session: valid_session
82
- expect(response).to have_http_status(:unprocessable_entity)
82
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
83
83
  expect(response.content_type).to eq('application/json')
84
84
  end
85
85
  end
@@ -110,7 +110,7 @@ RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:control
110
110
  it "renders a JSON response with errors for the <%= singular_table_name %>" do
111
111
  <%= file_name %> = <%= class_name %>.create! valid_attributes
112
112
  put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: invalid_attributes}, session: valid_session
113
- expect(response).to have_http_status(:unprocessable_entity)
113
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
114
114
  expect(response.content_type).to eq('application/json')
115
115
  end
116
116
  end
@@ -79,7 +79,7 @@ RSpec.describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %
79
79
  it "renders a JSON response with errors for the new <%= singular_table_name %>" do
80
80
  post <%= index_helper %>_url,
81
81
  params: { <%= singular_table_name %>: invalid_attributes }, headers: valid_headers, as: :json
82
- expect(response).to have_http_status(:unprocessable_entity)
82
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
83
83
  expect(response.content_type).to match(a_string_including("application/json"))
84
84
  end
85
85
  end
@@ -113,7 +113,7 @@ RSpec.describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %
113
113
  <%= file_name %> = <%= class_name %>.create! valid_attributes
114
114
  patch <%= show_helper %>,
115
115
  params: { <%= singular_table_name %>: invalid_attributes }, headers: valid_headers, as: :json
116
- expect(response).to have_http_status(:unprocessable_entity)
116
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
117
117
  expect(response.content_type).to match(a_string_including("application/json"))
118
118
  end
119
119
  end
@@ -92,7 +92,7 @@ RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:control
92
92
  context "with invalid params" do
93
93
  it "renders a response with 422 status (i.e. to display the 'new' template)" do
94
94
  post :create, params: {<%= singular_table_name %>: invalid_attributes}, session: valid_session
95
- expect(response).to have_http_status(:unprocessable_entity)
95
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
96
96
  end
97
97
  end
98
98
  end
@@ -121,7 +121,7 @@ RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:control
121
121
  it "renders a response with 422 status (i.e. to display the 'edit' template)" do
122
122
  <%= file_name %> = <%= class_name %>.create! valid_attributes
123
123
  put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: invalid_attributes}, session: valid_session
124
- expect(response).to have_http_status(:unprocessable_entity)
124
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
125
125
  end
126
126
  end
127
127
  end
@@ -85,7 +85,7 @@ RSpec.describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %
85
85
 
86
86
  it "renders a response with 422 status (i.e. to display the 'new' template)" do
87
87
  post <%= index_helper %>_url, params: { <%= singular_table_name %>: invalid_attributes }
88
- expect(response).to have_http_status(:unprocessable_entity)
88
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
89
89
  end
90
90
  end
91
91
  end
@@ -115,7 +115,7 @@ RSpec.describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %
115
115
  it "renders a response with 422 status (i.e. to display the 'edit' template)" do
116
116
  <%= file_name %> = <%= class_name %>.create! valid_attributes
117
117
  patch <%= show_helper %>, params: { <%= singular_table_name %>: invalid_attributes }
118
- expect(response).to have_http_status(:unprocessable_entity)
118
+ expect(response).to have_http_status(<%= Rack::Utils::SYMBOL_TO_STATUS_CODE.key(422).inspect %>)
119
119
  end
120
120
  end
121
121
  end
@@ -320,6 +320,10 @@ module RSpec
320
320
 
321
321
  !matches?(proc)
322
322
  end
323
+
324
+ def supports_block_expectations?
325
+ false
326
+ end
323
327
  end
324
328
 
325
329
  # @private
@@ -352,6 +356,10 @@ module RSpec
352
356
  @job = job
353
357
  check(queue_adapter.performed_jobs)
354
358
  end
359
+
360
+ def supports_block_expectations?
361
+ false
362
+ end
355
363
  end
356
364
  end
357
365
 
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Rails.
4
4
  module Version
5
5
  # Current version of RSpec Rails, in semantic versioning format.
6
- STRING = '8.0.0'
6
+ STRING = '8.0.2'
7
7
  end
8
8
  end
9
9
  end
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.0
4
+ version: 8.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -42,7 +42,7 @@ cert_chain:
42
42
  AwP+qZPPf97FXXZGEGIYhhHpnj+Ltx9nCetRPiZ4rvYBcXgCWVQSg6eiEofrMwn/
43
43
  AKMCABhZ1Y2eATsfMgdkmIZk7JIPZiSi6eUxPiCMP9M/pw==
44
44
  -----END CERTIFICATE-----
45
- date: 2025-04-30 00:00:00.000000000 Z
45
+ date: 1980-01-02 00:00:00.000000000 Z
46
46
  dependencies:
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: actionpack
@@ -162,28 +162,28 @@ dependencies:
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: 0.14.12
165
+ version: 2.3.1
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - "~>"
171
171
  - !ruby/object:Gem::Version
172
- version: 0.14.12
172
+ version: 2.3.1
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: cucumber
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - ">"
177
+ - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: '7.0'
179
+ version: '10.0'
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
- - - ">"
184
+ - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: '7.0'
186
+ version: '10.0'
187
187
  description: rspec-rails integrates the Rails testing helpers into RSpec.
188
188
  email: rspec@googlegroups.com
189
189
  executables: []
@@ -297,7 +297,7 @@ 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/v8.0.0/Changelog.md
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
@@ -316,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  - !ruby/object:Gem::Version
317
317
  version: '0'
318
318
  requirements: []
319
- rubygems_version: 3.6.2
319
+ rubygems_version: 3.6.7
320
320
  specification_version: 4
321
321
  summary: RSpec for Rails
322
322
  test_files: []
metadata.gz.sig CHANGED
Binary file