Fix test breakage due to action name change.
parent
1821ad2ee6
commit
fffed2dd60
|
@ -6,7 +6,7 @@ describe DashboardController do
|
|||
it 'can not re-verify' do
|
||||
user.update_attributes(confirmed_at: Time.now)
|
||||
sign_in user
|
||||
get :verify, params: { token: user.confirmation_token }
|
||||
get :confirmation_page, params: { token: user.confirmation_token }
|
||||
expect(response.status).to eq(409)
|
||||
expect(response.body).to include("already verified")
|
||||
end
|
||||
|
|
|
@ -35,7 +35,7 @@ describe DashboardController do
|
|||
it 'creates a new user' do
|
||||
params = { token: user.confirmation_token }
|
||||
expect(user.confirmed_at).to eq(nil)
|
||||
get :verify, params: params
|
||||
get :confirmation_page, params: params
|
||||
user.reload
|
||||
expect(user.confirmation_token).to be
|
||||
expect(user.confirmed_at).to be
|
||||
|
@ -46,7 +46,7 @@ describe DashboardController do
|
|||
email = "foo@bar.com"
|
||||
user.update_attributes!(unconfirmed_email: "foo@bar.com")
|
||||
params = { token: user.confirmation_token }
|
||||
get :verify, params: params
|
||||
get :confirmation_page, params: params
|
||||
expect(user.reload.unconfirmed_email).to be nil
|
||||
expect(user.email).to eq email
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue