fixes specs

This commit is contained in:
rgarcia
2015-10-19 23:19:53 +02:00
parent 17bb633567
commit 8904748ae2
3 changed files with 4 additions and 3 deletions

View File

@@ -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