Skip to content

A platform for community discussion. Free, open, simple.

DEV: Clean up authenticator in email_change_spec (#25521)

David Taylor02953ec5fac3
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