inline_forms_installer 8.1.80 → 8.1.81
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
- data/lib/inline_forms_installer/version.rb +1 -1
- data/lib/installer_templates/example_app_tests/test/integration/example_app_apartment_photos_pagination_test.rb +3 -1
- data/lib/installer_templates/example_app_tests/test/integration/example_app_showcase_file_slot_test.rb +3 -0
- data/lib/installer_templates/example_app_views/inline_forms/_header.html.erb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 990bb39371bdc087bc18b732cd019f4e38e320484c2e793f7f50f87755b93af0
|
|
4
|
+
data.tar.gz: 4d5e203dc9bd1ae785c708a8edc5889b5034a39045c56f1f2933474ff3551642
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4059b0c3c4b5141c732b1c0347e391c34ac338c6f4752db8b20f56f1bc0174dcc9b574a73e7ae32ed6a7b3b16adf5d288d24e0e27e06092c7bcb389f400ee094
|
|
7
|
+
data.tar.gz: cc646ced5a0287482d397999a5fe7e37771503714953348e2bff2e7457c756b88138550e71c60d7866696880172f371304803d11446d54807809c5597e27d9ea
|
|
@@ -403,7 +403,9 @@ class ExampleAppApartmentPhotosPaginationTest < ExampleAppIntegrationTestCase
|
|
|
403
403
|
headers: headers
|
|
404
404
|
assert_response :success
|
|
405
405
|
assert_includes @response.body, %(<turbo-frame id="#{frame}">)
|
|
406
|
-
|
|
406
|
+
# Since 8.1.81 a frame request gets the frame layout (no head assets, no
|
|
407
|
+
# header): Turbo inserts only the frame, which the page already styles.
|
|
408
|
+
refute_includes @response.body, "stylesheet", "new in a frame answers with the frame layout"
|
|
407
409
|
assert_includes @response.body, %(enctype="multipart/form-data")
|
|
408
410
|
assert_includes @response.body, 'class="edit_form"'
|
|
409
411
|
assert_includes @response.body, 'name="name"'
|
|
@@ -98,5 +98,8 @@ class ExampleAppShowcaseFileSlotTest < ExampleAppIntegrationTestCase
|
|
|
98
98
|
user_menu = response.body.scan(/<ul class="menu">(.*?)<\/ul>/m).flatten.find { |menu| menu.include?(destroy_user_session_path) }
|
|
99
99
|
assert user_menu, "no user menu with the logout link"
|
|
100
100
|
assert_includes user_menu, %(href="#{inline_forms_file_trash_path}")
|
|
101
|
+
# The engine loads Turbo, not rails-ujs: Turbo must send the DELETE, or the
|
|
102
|
+
# link is a GET that Devise refuses.
|
|
103
|
+
assert_match %r{<a[^>]+data-turbo-method="delete"[^>]+href="#{Regexp.escape(destroy_user_session_path)}"|<a[^>]+href="#{Regexp.escape(destroy_user_session_path)}"[^>]+data-turbo-method="delete"}, user_menu
|
|
101
104
|
end
|
|
102
105
|
end
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
<li><%= trash_link %></li>
|
|
44
44
|
<% end %>
|
|
45
45
|
<li>
|
|
46
|
-
|
|
46
|
+
<%# data-turbo-method: Turbo sends the DELETE (the engine loads no rails-ujs); data-method for an app that does. %>
|
|
47
|
+
<%= link_to(t("common.logout"), destroy_user_session_path, method: :delete, data: { turbo_method: :delete }) if current_user %>
|
|
47
48
|
</li>
|
|
48
49
|
</ul>
|
|
49
50
|
</li>
|