Fixed issue causing account verify to throw 404 (#1987)

This commit is contained in:
Ahmad Farhat
2020-08-04 14:04:47 -04:00
committed by GitHub
parent 0710c569b7
commit 620416f18a
5 changed files with 11 additions and 5 deletions

View File

@ -34,8 +34,9 @@ describe AccountActivationsController, type: :controller do
it "renders the verify view if the user is not signed in and is not verified" do
user = create(:user, email_verified: false, provider: "greenlight")
user.create_activation_token
get :show, params: { token: user.create_activation_token }
get :show, params: { digest: user.activation_digest }
expect(response).to render_template(:show)
end