From 4dc00a011419edcbd23c62587075d209e721a2d9 Mon Sep 17 00:00:00 2001 From: Dominik Kwiatek Date: Sun, 15 Nov 2020 10:29:09 +0100 Subject: [PATCH] Fix test for activating with expired code --- spec/controllers/user_controller_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index 4966f936..a5b92a44 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -131,7 +131,6 @@ describe UserController, type: :controller do it "shows an error if the user attempts to use the code once it has expired" do Timecop.freeze(Time.at(1603290910)) do subject - expect(response).to redirect_to :edit_user_security expect(flash[:error]).to eq('The code you entered was invalid.') end end