]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/4434'
authorTom Hughes <tom@compton.nu>
Thu, 28 Dec 2023 18:23:21 +0000 (18:23 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 28 Dec 2023 18:23:21 +0000 (18:23 +0000)
config/locales/en.yml
test/system/oauth2_test.rb [new file with mode: 0644]

index fa10f018f8de2283a1e212cc09123a936eda738b..14e9b5c442373e6e0f39b0999011c259ffa6b3cc 100644 (file)
@@ -2683,6 +2683,7 @@ en:
       application: "Application"
       permissions: "Permissions"
       no_applications_html: "You have not yet authorized any %{oauth2} applications."
+      oauth_2: "OAuth 2"
     application:
       revoke: "Revoke Access"
       confirm_revoke: "Revoke access for this application?"
diff --git a/test/system/oauth2_test.rb b/test/system/oauth2_test.rb
new file mode 100644 (file)
index 0000000..ab49640
--- /dev/null
@@ -0,0 +1,10 @@
+require "application_system_test_case"
+
+class Oauth2Test < ApplicationSystemTestCase
+  def test_authorized_applications
+    sign_in_as(create(:user))
+    visit oauth_authorized_applications_path
+
+    assert_text "You have not yet authorized any OAuth 2 applications."
+  end
+end