From 02953ec5fac34a44c2ed29f53cfb164fb1bbe2ab Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 1 Feb 2024 14:11:18 +0000 Subject: [PATCH] DEV: Clean up authenticator in email_change_spec (#25521) --- spec/system/email_change_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/system/email_change_spec.rb b/spec/system/email_change_spec.rb index a2683fc5b3d..1d198370a14 100644 --- a/spec/system/email_change_spec.rb +++ b/spec/system/email_change_spec.rb @@ -97,6 +97,8 @@ describe "Changing email", type: :system do try_until_success { expect(current_url).to match("/u/#{user.username}/preferences/account") } expect(user.reload.email).to eq(new_email) + ensure + authenticator.remove! end it "does not require login to verify" do