inline_forms_installer 8.1.55 → 8.1.57
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d1734105bfa07ffb1a5a27e0c52fcc41ea5cbd8aac7db548ef6601493c3b492
|
|
4
|
+
data.tar.gz: d22858fa2313b583b881fc7f7ec69b224566be4412311f9ec5f458c912b171db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 759e2f5a92aa54b3fcf125b311a55b80ba00bcc0f3247564510d04753ed091be6f5d15603fa816232dd0d8ff63df1dda501f3f8118edf86de9d7f89276a94473
|
|
7
|
+
data.tar.gz: 937571d49fb60a4fc83db7e789bab6a971287e5f1a4e50112f25b7c793a69273c69349c22dced242d1972344b5142b5faa718da1d5731ce0c6b7e711360b3053
|
data/lib/installer_templates/example_app_tests/test/integration/example_app_devise_sign_in_test.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "test_helper"
|
|
4
|
+
|
|
5
|
+
# The sign-in page (inline_forms 8.1.57): the Devise layout declares the page
|
|
6
|
+
# language like the inline_forms layout, and the submit button is translated
|
|
7
|
+
# (it was `f.submit :login`, an untranslated "login" in every locale).
|
|
8
|
+
class ExampleAppDeviseSignInTest < ActionDispatch::IntegrationTest
|
|
9
|
+
setup do
|
|
10
|
+
host!("www.example.com")
|
|
11
|
+
@mapping = Devise.mappings.values.first
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def sign_in_path
|
|
15
|
+
Rails.application.routes.url_helpers.public_send("new_#{@mapping.name}_session_path")
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
test "the sign-in page declares its language and translates the submit button" do
|
|
19
|
+
get sign_in_path
|
|
20
|
+
|
|
21
|
+
assert_response :success
|
|
22
|
+
assert_includes @response.body, %(<html lang="#{I18n.locale}">)
|
|
23
|
+
assert_includes @response.body, %(value="#{I18n.t('inline_forms.devise.login')}")
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
test "the submit label has an nl translation" do
|
|
27
|
+
assert_equal "inloggen", I18n.t("inline_forms.devise.login", locale: :nl)
|
|
28
|
+
end
|
|
29
|
+
end
|
data/lib/installer_templates/example_app_tests/test/integration/example_app_turbo_layout_test.rb
CHANGED
|
@@ -11,7 +11,7 @@ class ExampleAppTurboLayoutTest < ExampleAppIntegrationTestCase
|
|
|
11
11
|
assert_response :success
|
|
12
12
|
|
|
13
13
|
assert_match(
|
|
14
|
-
%r{<script\s+type="module"
|
|
14
|
+
%r{<script\s+type="module"[^>]*>\s*import\s+\{\s*Turbo\s*\}\s+from\s+"[^"]*turbo\.min(?:-[a-f0-9]+)?\.js"}m,
|
|
15
15
|
@response.body,
|
|
16
16
|
"expected the inline_forms layout to import turbo.min.js as a module"
|
|
17
17
|
)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inline_forms_installer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.1.
|
|
4
|
+
version: 8.1.57
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ace Suares
|
|
@@ -98,6 +98,7 @@ files:
|
|
|
98
98
|
- lib/installer_templates/example_app_tests/test/integration/example_app_apartment_top_level_pagination_test.rb
|
|
99
99
|
- lib/installer_templates/example_app_tests/test/integration/example_app_apartment_versions_turbo_test.rb
|
|
100
100
|
- lib/installer_templates/example_app_tests/test/integration/example_app_devise_passwords_test.rb
|
|
101
|
+
- lib/installer_templates/example_app_tests/test/integration/example_app_devise_sign_in_test.rb
|
|
101
102
|
- lib/installer_templates/example_app_tests/test/integration/example_app_guest_access_test.rb
|
|
102
103
|
- lib/installer_templates/example_app_tests/test/integration/example_app_layout_title_test.rb
|
|
103
104
|
- lib/installer_templates/example_app_tests/test/integration/example_app_owner_tabs_test.rb
|