The personal finance app for everyone (by everyone)
Ruby
fix(wise): stub encryption in the SCA localization success test (#3437)
Juan José Mataabaead8ae487
diff --git a/test/controllers/wise_sca_localization_test.rb b/test/controllers/wise_sca_localization_test.rbindex af4df41886..8c30a9ed23 100644--- a/test/controllers/wise_sca_localization_test.rb+++ b/test/controllers/wise_sca_localization_test.rb@@ -68,7 +68,11 @@ class WiseScaPanelLocalizationTest < ActionDispatch::IntegrationTestassert_sca_copy "regenerate_confirm"end+ # The key is only ever stored encrypted, and the test environment configures+ # no encryption keys, so the flow has to be exercised as an install that does.test "German Wise SCA keypair generation returns the localized success message" do+ WiseItem.stubs(:encryption_ready?).returns(true)+post generate_sca_keypair_wise_item_url(wise_items(:one))assert_redirected_to accounts_path