Change single quotes to double quotes
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
require 'rails_helper'
|
||||
require "rails_helper"
|
||||
|
||||
feature 'Level three verification' do
|
||||
scenario 'Verification with residency and verified sms' do
|
||||
feature "Level three verification" do
|
||||
scenario "Verification with residency and verified sms" do
|
||||
create(:geozone)
|
||||
user = create(:user)
|
||||
|
||||
verified_user = create(:verified_user,
|
||||
document_number: '12345678Z',
|
||||
document_type: '1',
|
||||
phone: '611111111')
|
||||
document_number: "12345678Z",
|
||||
document_type: "1",
|
||||
phone: "611111111")
|
||||
|
||||
login_as(user)
|
||||
|
||||
visit account_path
|
||||
click_link 'Verify my account'
|
||||
click_link "Verify my account"
|
||||
|
||||
verify_residence
|
||||
|
||||
@@ -21,11 +21,11 @@ feature 'Level three verification' do
|
||||
click_button "Send code"
|
||||
end
|
||||
|
||||
expect(page).to have_content 'Security code confirmation'
|
||||
expect(page).to have_content "Security code confirmation"
|
||||
|
||||
user = user.reload
|
||||
fill_in 'sms_confirmation_code', with: user.sms_confirmation_code
|
||||
click_button 'Send'
|
||||
fill_in "sms_confirmation_code", with: user.sms_confirmation_code
|
||||
click_button "Send"
|
||||
|
||||
expect(page).to have_content "Code correct. Your account is now verified"
|
||||
|
||||
@@ -33,19 +33,19 @@ feature 'Level three verification' do
|
||||
expect(page).to have_content "Account verified"
|
||||
end
|
||||
|
||||
scenario 'Verification with residency and verified email' do
|
||||
scenario "Verification with residency and verified email" do
|
||||
create(:geozone)
|
||||
user = create(:user)
|
||||
|
||||
verified_user = create(:verified_user,
|
||||
document_number: '12345678Z',
|
||||
document_type: '1',
|
||||
email: 'rock@example.com')
|
||||
document_number: "12345678Z",
|
||||
document_type: "1",
|
||||
email: "rock@example.com")
|
||||
|
||||
login_as(user)
|
||||
|
||||
visit account_path
|
||||
click_link 'Verify my account'
|
||||
click_link "Verify my account"
|
||||
|
||||
verify_residence
|
||||
|
||||
@@ -53,7 +53,7 @@ feature 'Level three verification' do
|
||||
click_button "Send code"
|
||||
end
|
||||
|
||||
expect(page).to have_content 'We have sent a confirmation email to your account: rock@example.com'
|
||||
expect(page).to have_content "We have sent a confirmation email to your account: rock@example.com"
|
||||
|
||||
sent_token = /.*email_verification_token=(.*)".*/.match(ActionMailer::Base.deliveries.last.body.to_s)[1]
|
||||
visit email_path(email_verification_token: sent_token)
|
||||
@@ -64,26 +64,26 @@ feature 'Level three verification' do
|
||||
expect(page).to have_content "Account verified"
|
||||
end
|
||||
|
||||
scenario 'Verification with residency and sms and letter' do
|
||||
scenario "Verification with residency and sms and letter" do
|
||||
create(:geozone)
|
||||
user = create(:user)
|
||||
login_as(user)
|
||||
|
||||
visit account_path
|
||||
click_link 'Verify my account'
|
||||
click_link "Verify my account"
|
||||
|
||||
verify_residence
|
||||
|
||||
fill_in 'sms_phone', with: "611111111"
|
||||
click_button 'Send'
|
||||
fill_in "sms_phone", with: "611111111"
|
||||
click_button "Send"
|
||||
|
||||
expect(page).to have_content 'Security code confirmation'
|
||||
expect(page).to have_content "Security code confirmation"
|
||||
|
||||
user = user.reload
|
||||
fill_in 'sms_confirmation_code', with: user.sms_confirmation_code
|
||||
click_button 'Send'
|
||||
fill_in "sms_confirmation_code", with: user.sms_confirmation_code
|
||||
click_button "Send"
|
||||
|
||||
expect(page).to have_content 'Code correct'
|
||||
expect(page).to have_content "Code correct"
|
||||
|
||||
click_link "Send me a letter with the code"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user