fixes specs
This commit is contained in:
@@ -51,7 +51,7 @@ feature 'Verification path' do
|
||||
end
|
||||
|
||||
scenario "User received verification email" do
|
||||
user = create(:user, letter_requested_at: Time.now, letter_verification_code: "666")
|
||||
user = create(:user, residence_verified_at: Time.now, email_verification_token: "1234")
|
||||
|
||||
login_as(user)
|
||||
visit verification_path
|
||||
@@ -90,7 +90,7 @@ feature 'Verification path' do
|
||||
|
||||
login_as(user)
|
||||
|
||||
verification_paths = [new_residence_path, verified_user_path, edit_sms_path, new_letter_path, edit_letter_path]
|
||||
verification_paths = [new_residence_path, verified_user_path, edit_sms_path, new_letter_path]
|
||||
verification_paths.each do |step_path|
|
||||
visit step_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user