Skip to content

Commit 927e1d0

Browse files
Bump rails from 7.1.5.1 to 7.2.2.1 (#3333)
* Bump rails from 7.1.5.1 to 7.2.2.1 Bumps [rails](https://github.com/rails/rails) from 7.1.5.1 to 7.2.2.1. - [Release notes](https://github.com/rails/rails/releases) - [Commits](rails/rails@v7.1.5.1...v7.2.2.1) --- updated-dependencies: - dependency-name: rails dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * test fixes? * f this * and here --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: colin <[email protected]>
1 parent 1bae08c commit 927e1d0

File tree

5 files changed

+113
-115
lines changed

5 files changed

+113
-115
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
22
ruby '3.2.4'
33

44
# Standard rails
5-
gem 'rails', '~> 7.1.5.1'
5+
gem 'rails', '~> 7.2.2.1'
66
gem 'puma', '~> 6.5' # roar
77
gem 'sdoc', '~> 2.6.0', group: :doc
88
gem 'nokogiri', '>= 1.13.4'

Gemfile.lock

Lines changed: 69 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,58 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
Ascii85 (1.1.0)
5-
actioncable (7.1.5.1)
6-
actionpack (= 7.1.5.1)
7-
activesupport (= 7.1.5.1)
5+
actioncable (7.2.2.1)
6+
actionpack (= 7.2.2.1)
7+
activesupport (= 7.2.2.1)
88
nio4r (~> 2.0)
99
websocket-driver (>= 0.6.1)
1010
zeitwerk (~> 2.6)
11-
actionmailbox (7.1.5.1)
12-
actionpack (= 7.1.5.1)
13-
activejob (= 7.1.5.1)
14-
activerecord (= 7.1.5.1)
15-
activestorage (= 7.1.5.1)
16-
activesupport (= 7.1.5.1)
17-
mail (>= 2.7.1)
18-
net-imap
19-
net-pop
20-
net-smtp
21-
actionmailer (7.1.5.1)
22-
actionpack (= 7.1.5.1)
23-
actionview (= 7.1.5.1)
24-
activejob (= 7.1.5.1)
25-
activesupport (= 7.1.5.1)
26-
mail (~> 2.5, >= 2.5.4)
27-
net-imap
28-
net-pop
29-
net-smtp
11+
actionmailbox (7.2.2.1)
12+
actionpack (= 7.2.2.1)
13+
activejob (= 7.2.2.1)
14+
activerecord (= 7.2.2.1)
15+
activestorage (= 7.2.2.1)
16+
activesupport (= 7.2.2.1)
17+
mail (>= 2.8.0)
18+
actionmailer (7.2.2.1)
19+
actionpack (= 7.2.2.1)
20+
actionview (= 7.2.2.1)
21+
activejob (= 7.2.2.1)
22+
activesupport (= 7.2.2.1)
23+
mail (>= 2.8.0)
3024
rails-dom-testing (~> 2.2)
31-
actionpack (7.1.5.1)
32-
actionview (= 7.1.5.1)
33-
activesupport (= 7.1.5.1)
25+
actionpack (7.2.2.1)
26+
actionview (= 7.2.2.1)
27+
activesupport (= 7.2.2.1)
3428
nokogiri (>= 1.8.5)
3529
racc
36-
rack (>= 2.2.4)
30+
rack (>= 2.2.4, < 3.2)
3731
rack-session (>= 1.0.1)
3832
rack-test (>= 0.6.3)
3933
rails-dom-testing (~> 2.2)
4034
rails-html-sanitizer (~> 1.6)
41-
actiontext (7.1.5.1)
42-
actionpack (= 7.1.5.1)
43-
activerecord (= 7.1.5.1)
44-
activestorage (= 7.1.5.1)
45-
activesupport (= 7.1.5.1)
35+
useragent (~> 0.16)
36+
actiontext (7.2.2.1)
37+
actionpack (= 7.2.2.1)
38+
activerecord (= 7.2.2.1)
39+
activestorage (= 7.2.2.1)
40+
activesupport (= 7.2.2.1)
4641
globalid (>= 0.6.0)
4742
nokogiri (>= 1.8.5)
48-
actionview (7.1.5.1)
49-
activesupport (= 7.1.5.1)
43+
actionview (7.2.2.1)
44+
activesupport (= 7.2.2.1)
5045
builder (~> 3.1)
5146
erubi (~> 1.11)
5247
rails-dom-testing (~> 2.2)
5348
rails-html-sanitizer (~> 1.6)
54-
activejob (7.1.5.1)
55-
activesupport (= 7.1.5.1)
49+
activejob (7.2.2.1)
50+
activesupport (= 7.2.2.1)
5651
globalid (>= 0.3.6)
57-
activemodel (7.1.5.1)
58-
activesupport (= 7.1.5.1)
59-
activerecord (7.1.5.1)
60-
activemodel (= 7.1.5.1)
61-
activesupport (= 7.1.5.1)
52+
activemodel (7.2.2.1)
53+
activesupport (= 7.2.2.1)
54+
activerecord (7.2.2.1)
55+
activemodel (= 7.2.2.1)
56+
activesupport (= 7.2.2.1)
6257
timeout (>= 0.4.0)
6358
activerecord-session_store (2.1.0)
6459
actionpack (>= 6.1)
@@ -67,25 +62,24 @@ GEM
6762
multi_json (~> 1.11, >= 1.11.2)
6863
rack (>= 2.0.8, < 4)
6964
railties (>= 6.1)
70-
activestorage (7.1.5.1)
71-
actionpack (= 7.1.5.1)
72-
activejob (= 7.1.5.1)
73-
activerecord (= 7.1.5.1)
74-
activesupport (= 7.1.5.1)
65+
activestorage (7.2.2.1)
66+
actionpack (= 7.2.2.1)
67+
activejob (= 7.2.2.1)
68+
activerecord (= 7.2.2.1)
69+
activesupport (= 7.2.2.1)
7570
marcel (~> 1.0)
76-
activesupport (7.1.5.1)
71+
activesupport (7.2.2.1)
7772
base64
7873
benchmark (>= 0.3)
7974
bigdecimal
80-
concurrent-ruby (~> 1.0, >= 1.0.2)
75+
concurrent-ruby (~> 1.0, >= 1.3.1)
8176
connection_pool (>= 2.2.5)
8277
drb
8378
i18n (>= 1.6, < 2)
8479
logger (>= 1.4.2)
8580
minitest (>= 5.1)
86-
mutex_m
8781
securerandom (>= 0.3)
88-
tzinfo (~> 2.0)
82+
tzinfo (~> 2.0, >= 2.0.5)
8983
acts_as_tenant (0.6.1)
9084
rails (>= 5.2)
9185
request_store (>= 1.0.5)
@@ -147,7 +141,7 @@ GEM
147141
dotenv (= 3.1.7)
148142
railties (>= 6.1)
149143
drb (2.2.1)
150-
erubi (1.13.0)
144+
erubi (1.13.1)
151145
factory_bot (6.5.0)
152146
activesupport (>= 5.0.0)
153147
factory_bot_rails (6.4.4)
@@ -247,7 +241,6 @@ GEM
247241
multi_json (1.15.0)
248242
multi_xml (0.7.1)
249243
bigdecimal (~> 3.1)
250-
mutex_m (0.3.0)
251244
net-http (0.6.0)
252245
uri
253246
net-imap (0.5.5)
@@ -313,7 +306,7 @@ GEM
313306
pry (0.15.2)
314307
coderay (~> 1.1)
315308
method_source (~> 1.0)
316-
psych (5.2.2)
309+
psych (5.2.3)
317310
date
318311
stringio
319312
public_suffix (5.0.5)
@@ -327,26 +320,27 @@ GEM
327320
base64 (>= 0.1.0)
328321
logger (>= 1.6.0)
329322
rack (>= 3.0.0, < 4)
330-
rack-session (2.0.0)
323+
rack-session (2.1.0)
324+
base64 (>= 0.1.0)
331325
rack (>= 3.0.0)
332326
rack-test (2.2.0)
333327
rack (>= 1.3)
334328
rackup (2.2.1)
335329
rack (>= 3)
336-
rails (7.1.5.1)
337-
actioncable (= 7.1.5.1)
338-
actionmailbox (= 7.1.5.1)
339-
actionmailer (= 7.1.5.1)
340-
actionpack (= 7.1.5.1)
341-
actiontext (= 7.1.5.1)
342-
actionview (= 7.1.5.1)
343-
activejob (= 7.1.5.1)
344-
activemodel (= 7.1.5.1)
345-
activerecord (= 7.1.5.1)
346-
activestorage (= 7.1.5.1)
347-
activesupport (= 7.1.5.1)
330+
rails (7.2.2.1)
331+
actioncable (= 7.2.2.1)
332+
actionmailbox (= 7.2.2.1)
333+
actionmailer (= 7.2.2.1)
334+
actionpack (= 7.2.2.1)
335+
actiontext (= 7.2.2.1)
336+
actionview (= 7.2.2.1)
337+
activejob (= 7.2.2.1)
338+
activemodel (= 7.2.2.1)
339+
activerecord (= 7.2.2.1)
340+
activestorage (= 7.2.2.1)
341+
activesupport (= 7.2.2.1)
348342
bundler (>= 1.15.0)
349-
railties (= 7.1.5.1)
343+
railties (= 7.2.2.1)
350344
rails-dom-testing (2.2.0)
351345
activesupport (>= 5.0.0)
352346
minitest
@@ -357,10 +351,10 @@ GEM
357351
rails-i18n (7.0.10)
358352
i18n (>= 0.7, < 2)
359353
railties (>= 6.0.0, < 8)
360-
railties (7.1.5.1)
361-
actionpack (= 7.1.5.1)
362-
activesupport (= 7.1.5.1)
363-
irb
354+
railties (7.2.2.1)
355+
actionpack (= 7.2.2.1)
356+
activesupport (= 7.2.2.1)
357+
irb (~> 1.13)
364358
rackup (>= 1.0.0)
365359
rake (>= 12.2)
366360
thor (~> 1.0, >= 1.2.2)
@@ -370,7 +364,7 @@ GEM
370364
rb-fsevent (0.11.2)
371365
rb-inotify (0.10.1)
372366
ffi (~> 1.0)
373-
rdoc (6.10.0)
367+
rdoc (6.11.0)
374368
psych (>= 4.0.0)
375369
regexp_parser (2.10.0)
376370
reline (0.6.0)
@@ -462,6 +456,7 @@ GEM
462456
unicode-display_width (2.6.0)
463457
uniform_notifier (1.16.0)
464458
uri (1.0.2)
459+
useragent (0.16.11)
465460
version_gem (1.1.4)
466461
view_component (3.21.0)
467462
activesupport (>= 5.2.0, < 8.1)
@@ -470,7 +465,8 @@ GEM
470465
warden (1.2.9)
471466
rack (>= 2.0.9)
472467
websocket (1.2.11)
473-
websocket-driver (0.7.6)
468+
websocket-driver (0.7.7)
469+
base64
474470
websocket-extensions (>= 0.1.0)
475471
websocket-extensions (0.1.5)
476472
wicked (2.0.0)
@@ -529,7 +525,7 @@ DEPENDENCIES
529525
puma (~> 6.5)
530526
rack-attack (~> 6.7.0)
531527
rack-test (>= 0.6.3)
532-
rails (~> 7.1.5.1)
528+
rails (~> 7.2.2.1)
533529
rails-html-sanitizer (>= 1.4.3)
534530
rails-i18n (~> 7.0)
535531
render_async (~> 2.1)

test/controllers/lines_controller_test.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ class LinesControllerTest < ActionDispatch::IntegrationTest
3030
describe 'instance with no lines' do
3131
it 'should raise an error' do
3232
@line.destroy
33-
assert_raises Exceptions::NoLinesForFundError do
34-
get new_line_path
35-
end
33+
get new_line_path
34+
assert_equal response.status, 500
3635
end
3736
end
3837
end

test/controllers/patients_controller_test.rb

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ class PatientsControllerTest < ActionDispatch::IntegrationTest
4040

4141
it 'should not serve html' do
4242
sign_in @data_volunteer
43-
assert_raise ActionController::UnknownFormat do
44-
get patients_path
45-
end
43+
get patients_path
44+
assert_equal response.status, 406
4645
end
4746

4847
it 'should get csv when user is admin' do
@@ -75,9 +74,9 @@ class PatientsControllerTest < ActionDispatch::IntegrationTest
7574
it 'should not contain personally-identifying information' do
7675
sign_in @data_volunteer
7776
get patients_path(format: :csv)
78-
refute_match @patient.name.to_s, response.body
79-
refute_match @patient.primary_phone.to_s, response.body
80-
refute_match @patient.other_phone.to_s, response.body
77+
assert_no_match @patient.name.to_s, response.body
78+
assert_no_match @patient.primary_phone.to_s, response.body
79+
assert_no_match @patient.other_phone.to_s, response.body
8180
end
8281

8382
it 'should escape fields with attempted formula injection' do
@@ -322,14 +321,14 @@ class PatientsControllerTest < ActionDispatch::IntegrationTest
322321
pledge_generator_mock = Minitest::Mock.new
323322
pdf_mock_result = Minitest::Mock.new
324323
pledge_generator_mock.expect(:generate_pledge_pdf, pdf_mock_result)
325-
pdf_mock_result.expect :render, "mow"
324+
pdf_mock_result.expect :render, 'mow'
326325
assert_nil @patient.pledge_generated_at
327326
PledgeFormGenerator.stub(:new, pledge_generator_mock) do
328327
get generate_pledge_patient_path(@patient), params: { case_manager_name: 'somebody' }
329328
end
330329

331-
refute_nil @patient.reload.pledge_generated_at
332-
refute_nil @patient.reload.pledge_generated_by
330+
assert_not_nil @patient.reload.pledge_generated_at
331+
assert_not_nil @patient.reload.pledge_generated_by
333332
assert_response :success
334333
end
335334
end
@@ -347,8 +346,8 @@ class PatientsControllerTest < ActionDispatch::IntegrationTest
347346
HTTParty.stub(:post, fake_result) do
348347
post fetch_pledge_patient_path(@patient), params: {}
349348
end
350-
refute_nil @patient.reload.pledge_generated_at
351-
refute_nil @patient.reload.pledge_generated_by
349+
assert_not_nil @patient.reload.pledge_generated_at
350+
assert_not_nil @patient.reload.pledge_generated_by
352351
assert_response :success
353352
end
354353

@@ -437,7 +436,7 @@ class PatientsControllerTest < ActionDispatch::IntegrationTest
437436
assert_difference 'Patient.count', -1 do
438437
delete patient_path(@patient)
439438
end
440-
refute_nil flash[:notice]
439+
assert_not_nil flash[:notice]
441440
end
442441

443442
it 'should prevent a patient from being destroyed under some circumstances' do
@@ -449,7 +448,7 @@ class PatientsControllerTest < ActionDispatch::IntegrationTest
449448
assert_no_difference 'Patient.count' do
450449
delete patient_path(@patient)
451450
end
452-
refute_nil flash[:alert]
451+
assert_not_nil flash[:alert]
453452
end
454453
end
455454
end

0 commit comments

Comments
 (0)