Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Add the missing Up tagline to the Bank Sync provider list (#3802)

Guillem Arias Fauste5e9e3b1108a2
diff --git a/config/locales/views/settings/en.yml b/config/locales/views/settings/en.yml
index 785e7b38be..828454fd9c 100644
--- a/config/locales/views/settings/en.yml
+++ b/config/locales/views/settings/en.yml
@@ -457,6 +457,7 @@ en:
simplefin: Connect US bank accounts via the open SimpleFIN protocol.
lunchflow: Connect 20k+ banks from 40+ countries (UK, EU, USA and more!)
redbark: Sync Australian bank accounts via Redbark open banking.
+ up: Sync Australian Up bank accounts with a personal access token.
monobank: Sync Ukrainian Monobank cards and jars with a personal API token.
fio: Sync a Fio banka account with a read-only API token.
enable_banking: Sync European bank accounts via PSD2 open banking.
diff --git a/test/controllers/settings/providers_controller_test.rb b/test/controllers/settings/providers_controller_test.rb
index 2d32ef2b58..a2f5e00333 100644
--- a/test/controllers/settings/providers_controller_test.rb
+++ b/test/controllers/settings/providers_controller_test.rb
@@ -193,6 +193,16 @@ class Settings::ProvidersControllerTest < ActionDispatch::IntegrationTest
refute_includes response.body, "Test Brex Connection"
end
+ # The provider card reads its tagline with `default: nil`, so a missing key
+ # renders a bare name rather than failing. Up shipped that way.
+ test "every family panel provider has an English tagline" do
+ missing = Settings::ProvidersController::FAMILY_PANEL_KEYS.reject do |key|
+ I18n.exists?("settings.providers.taglines.#{key}", :en)
+ end
+
+ assert_empty missing
+ end
+
test "sync all control submits with POST" do
SimplefinItem.create!(
family: families(:dylan_family),