forked from External/greenlight
Fixed issue causing account verify to throw 404 (#1987)
This commit is contained in:
@ -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
|
||||
|
@ -144,7 +144,7 @@ describe SessionsController, type: :controller do
|
||||
|
||||
expect(@request.session[:user_id]).to be_nil
|
||||
# Expect to redirect to activation path since token is not known here
|
||||
expect(response.location.start_with?(account_activation_url(token: ""))).to be true
|
||||
expect(response.location.start_with?(account_activation_url(digest: @user3.activation_digest))).to be true
|
||||
end
|
||||
|
||||
it "should not login user if account is deleted" do
|
||||
|
Reference in New Issue
Block a user