rspec-rails 6.1.3 → 6.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: deeeefe5add9c88c1d8709df6f4859a0280fe1a74b7d422c446bae6edd84940e
4
- data.tar.gz: 970418fa92cdd51b634a9ed55a701ca3432657e3ea5b4bfba8629910a041f885
3
+ metadata.gz: 7014661043ef4c5a7b21f68ae8a7e73fba6cd95b41e48e6d7bcc1144f57bdb43
4
+ data.tar.gz: 79177157728f7e3a91afdbcf65c2387556df523b388473249ec227e62599ee7f
5
5
  SHA512:
6
- metadata.gz: f6e156b4ad6e766af357bddbe10bac0fa3a2336fea1eb5f24c9cb4da637a4e630ede7bcd906d03e9175a6e2c8641754d180d67551fc0d97842b9497d72143b9c
7
- data.tar.gz: 74e6a50c6d9b2329772280dc95c82ea94df55cdab0aa57aad3c9085faf5b15e2155d6f5e5f223e0b5165955472fd0d9447e25b8d9b8db2cb0dc914fa6c5ab3e4
6
+ metadata.gz: 6b8ef890d7f2d23788babc5c668bd2f4588e5a295858db340db88e68084f638289c122fa1f4d160a5c83503bdc440cb135f3d48fc7aa9073c5e0dad128b264dd
7
+ data.tar.gz: 80baf518a2ee910f7fa9bc5dea92e866e9a1f39ceb0bd538c11bffb26f737025e2e77be16285d34611b49f5c4f8008fe254cd0314d3a7e560c9112459da42b6f
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ### Development
2
- [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.3...6-1-maintenance)
2
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.4...6-1-maintenance)
3
+
4
+ ### 6.1.4 / 2024-08-15
5
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.3...v6.1.4)
6
+
7
+ Bug Fixes:
8
+
9
+ * Prevent `have_http_status` matcher raising an error when encountering a raw `Rack::MockResponse`.
10
+ (Christophe Bliard, #2771)
11
+ * Move Rails version conditional from index scaffold generated file to template. (Matt Jankowski, #2777)
3
12
 
4
13
  ### 6.1.3 / 2024-06-19
5
14
  [Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.2...v6.1.3)
@@ -18,7 +18,7 @@ RSpec.describe "<%= ns_table_name %>/index", <%= type_metatag(:view) %> do
18
18
 
19
19
  it "renders a list of <%= ns_table_name %>" do
20
20
  render
21
- cell_selector = Rails::VERSION::STRING >= '7' ? 'div>p' : 'tr>td'
21
+ cell_selector = <%= Rails::VERSION::STRING >= '7' ? "'div>p'" : "'tr>td'" %>
22
22
  <% for attribute in output_attributes -%>
23
23
  assert_select cell_selector, text: Regexp.new(<%= value_for(attribute) %>.to_s), count: 2
24
24
  <% end -%>
@@ -384,33 +384,33 @@ module RSpec
384
384
  #
385
385
  # @example
386
386
  # expect {
387
- # perform_jobs { HeavyLiftingJob.perform_later }
387
+ # perform_enqueued_jobs { HeavyLiftingJob.perform_later }
388
388
  # }.to have_performed_job
389
389
  #
390
390
  # expect {
391
- # perform_jobs {
391
+ # perform_enqueued_jobs {
392
392
  # HelloJob.perform_later
393
393
  # HeavyLiftingJob.perform_later
394
394
  # }
395
395
  # }.to have_performed_job(HelloJob).exactly(:once)
396
396
  #
397
397
  # expect {
398
- # perform_jobs { 3.times { HelloJob.perform_later } }
398
+ # perform_enqueued_jobs { 3.times { HelloJob.perform_later } }
399
399
  # }.to have_performed_job(HelloJob).at_least(2).times
400
400
  #
401
401
  # expect {
402
- # perform_jobs { HelloJob.perform_later }
402
+ # perform_enqueued_jobs { HelloJob.perform_later }
403
403
  # }.to have_performed_job(HelloJob).at_most(:twice)
404
404
  #
405
405
  # expect {
406
- # perform_jobs {
406
+ # perform_enqueued_jobs {
407
407
  # HelloJob.perform_later
408
408
  # HeavyLiftingJob.perform_later
409
409
  # }
410
410
  # }.to have_performed_job(HelloJob).and have_performed_job(HeavyLiftingJob)
411
411
  #
412
412
  # expect {
413
- # perform_jobs {
413
+ # perform_enqueued_jobs {
414
414
  # HelloJob.set(wait_until: Date.tomorrow.noon, queue: "low").perform_later(42)
415
415
  # }
416
416
  # }.to have_performed_job.with(42).on_queue("low").at(Date.tomorrow.noon)
@@ -33,7 +33,7 @@ module RSpec
33
33
  # @param obj [Object] object to convert to a response
34
34
  # @return [ActionDispatch::TestResponse]
35
35
  def as_test_response(obj)
36
- if ::ActionDispatch::Response === obj
36
+ if ::ActionDispatch::Response === obj || ::Rack::MockResponse === obj
37
37
  ::ActionDispatch::TestResponse.from_response(obj)
38
38
  elsif ::ActionDispatch::TestResponse === obj
39
39
  obj
@@ -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 = '6.1.3'
6
+ STRING = '6.1.4'
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: 6.1.3
4
+ version: 6.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -44,7 +44,7 @@ cert_chain:
44
44
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
45
45
  F3MdtaDehhjC
46
46
  -----END CERTIFICATE-----
47
- date: 2024-06-19 00:00:00.000000000 Z
47
+ date: 2024-08-15 00:00:00.000000000 Z
48
48
  dependencies:
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: actionpack
@@ -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/v6.1.3/Changelog.md
300
+ changelog_uri: https://github.com/rspec/rspec-rails/blob/v6.1.4/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
metadata.gz.sig CHANGED
Binary file