Fix payment settings test locale keys

Agent-Logs-Url: https://github.com/we-promise/sure/sessions/f0a45269-37a7-42c5-a2a2-8da6bccdd501

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-04 21:58:40 +00:00
committed by GitHub
parent 6e5ae842d6
commit 2ab71ef5a4

View File

@@ -25,7 +25,7 @@ class Settings::PaymentsControllerTest < ActionDispatch::IntegrationTest
assert_select(
"a[href=?]",
"https://buy.stripe.com/test_payment_link",
text: I18n.t("views.settings.payments.show.one_time_contribution_link_text")
text: I18n.t("settings.payments.show.one_time_contribution_link_text")
)
end
@@ -40,10 +40,9 @@ class Settings::PaymentsControllerTest < ActionDispatch::IntegrationTest
assert_response :success
assert_select(
"a",
text: I18n.t("views.settings.payments.show.one_time_contribution_link_text"),
text: I18n.t("settings.payments.show.one_time_contribution_link_text"),
count: 0
)
assert_select "p", text: I18n.t("views.settings.payments.show.payment_via_stripe")
assert_select "p", text: I18n.t("settings.payments.show.payment_via_stripe")
end
end