Skip to content

Commit c797ce9

Browse files
committed
Update test dummy application defaults
Affected gems: * actionmailbox * activestorage * actiontext This fixes the following warning: DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set `legacy_connection_handling` to `false` in your application. The new connection handling does not support `connection_handlers` getter and setter. Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling (called from require at ~/.gem/ruby/3.1.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34)
1 parent 799d263 commit c797ce9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

actionmailbox/test/dummy/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
module Dummy
88
class Application < Rails::Application
99
# Initialize configuration defaults for originally generated Rails version.
10-
config.load_defaults 6.0
10+
config.load_defaults 7.0
1111

1212
# Settings in config/environments/* take precedence over those specified here.
1313
# Application configuration can go into files in config/initializers

actiontext/test/dummy/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
module Dummy
99
class Application < Rails::Application
1010
# Initialize configuration defaults for originally generated Rails version.
11-
config.load_defaults 6.0
11+
config.load_defaults 7.0
1212

1313
# Settings in config/environments/* take precedence over those specified here.
1414
# Application configuration can go into files in config/initializers

actiontext/test/template/form_helper_test.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def form_with(*, **)
3333
end
3434

3535
assert_dom_equal \
36-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
36+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
3737
'<input type="hidden" name="content" id="trix_input_1" />' \
3838
'<trix-editor input="trix_input_1" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
3939
"</trix-editor>" \
@@ -47,7 +47,7 @@ def form_with(*, **)
4747
end
4848

4949
assert_dom_equal \
50-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
50+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
5151
'<input type="hidden" name="message[content]" id="message_content_trix_input_message" />' \
5252
'<trix-editor id="message_content" input="message_content_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
5353
"</trix-editor>" \
@@ -61,7 +61,7 @@ def form_with(*, **)
6161
end
6262

6363
assert_dom_equal \
64-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
64+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
6565
'<input type="hidden" name="message[content]" id="message_content_trix_input_message" />' \
6666
'<trix-editor id="message_content" input="message_content_trix_input_message" class="custom-class" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
6767
"</trix-editor>" \
@@ -75,7 +75,7 @@ def form_with(*, **)
7575
end
7676

7777
assert_dom_equal \
78-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
78+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
7979
'<input type="hidden" name="message[not_an_attribute]" id="message_not_an_attribute_trix_input_message" />' \
8080
'<trix-editor id="message_not_an_attribute" input="message_not_an_attribute_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
8181
"</trix-editor>" \
@@ -89,7 +89,7 @@ def form_with(*, **)
8989
end
9090

9191
assert_dom_equal \
92-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
92+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
9393
'<input type="hidden" name="message[content]" id="trix_input_2" />' \
9494
'<trix-editor id="message_content" input="trix_input_2" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
9595
"</trix-editor>" \
@@ -103,7 +103,7 @@ def form_with(*, **)
103103
end
104104

105105
assert_dom_equal \
106-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
106+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
107107
'<input type="hidden" name="message[content]" id="message_content_trix_input_message" />' \
108108
'<trix-editor placeholder="Content" id="message_content" input="message_content_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
109109
"</trix-editor>" \
@@ -119,7 +119,7 @@ def form_with(*, **)
119119
end
120120

121121
assert_dom_equal \
122-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
122+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
123123
'<input type="hidden" name="message[title]" id="message_title_trix_input_message" />' \
124124
'<trix-editor placeholder="Story title" id="message_title" input="message_title_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
125125
"</trix-editor>" \
@@ -133,7 +133,7 @@ def form_with(*, **)
133133
end
134134

135135
assert_dom_equal \
136-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
136+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
137137
'<input type="hidden" name="message[title]" id="message_title_trix_input_message" value="&lt;h1&gt;hello world&lt;/h1&gt;" />' \
138138
'<trix-editor id="message_title" input="message_title_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
139139
"</trix-editor>" \
@@ -147,7 +147,7 @@ def form_with(*, **)
147147
end
148148

149149
assert_dom_equal \
150-
'<form action="/messages" accept-charset="UTF-8" data-remote="true" method="post">' \
150+
'<form action="/messages" accept-charset="UTF-8" method="post">' \
151151
'<input type="hidden" name="message[title]" id="message_title_trix_input_message" form="other_form" />' \
152152
'<trix-editor id="message_title" input="message_title_trix_input_message" class="trix-content" data-direct-upload-url="http://test.host/rails/active_storage/direct_uploads" data-blob-url-template="http://test.host/rails/active_storage/blobs/redirect/:signed_id/:filename">' \
153153
"</trix-editor>" \

activestorage/test/dummy/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
module Dummy
1717
class Application < Rails::Application
18-
config.load_defaults 6.0
18+
config.load_defaults 7.0
1919

2020
config.active_storage.service = :local
2121
end

0 commit comments

Comments
 (0)