Change single quotes to double quotes

This commit is contained in:
Julian Herrero
2019-02-01 16:48:49 +01:00
parent 4a12425987
commit 31ac8b7f55
302 changed files with 6403 additions and 6403 deletions

View File

@@ -1,72 +1,72 @@
require 'rails_helper'
require "rails_helper"
feature 'SMS Verification' do
feature "SMS Verification" do
scenario 'Verify' do
scenario "Verify" do
user = create(:user, residence_verified_at: Time.current)
login_as(user)
visit new_sms_path
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"
end
scenario 'Errors on phone number' do
scenario "Errors on phone number" do
user = create(:user, residence_verified_at: Time.current)
login_as(user)
visit new_sms_path
click_button 'Send'
click_button "Send"
expect(page).to have_content error_message("phone")
end
scenario 'Errors on verification code' do
scenario "Errors on verification code" do
user = create(:user, residence_verified_at: Time.current)
login_as(user)
visit new_sms_path
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"
click_button 'Send'
click_button "Send"
expect(page).to have_content 'Incorrect confirmation code'
expect(page).to have_content "Incorrect confirmation code"
end
scenario 'Deny access unless residency verified' do
scenario "Deny access unless residency verified" do
user = create(:user)
login_as(user)
visit new_sms_path
expect(page).to have_content 'You have not yet confirmed your residency'
expect(page).to have_content "You have not yet confirmed your residency"
expect(page).to have_current_path(new_residence_path)
end
scenario '5 tries allowed' do
scenario "5 tries allowed" do
user = create(:user, residence_verified_at: Time.current)
login_as(user)
visit new_sms_path
5.times do
fill_in 'sms_phone', with: "611111111"
click_button 'Send'
click_link 'Click here to send it again'
fill_in "sms_phone", with: "611111111"
click_button "Send"
click_link "Click here to send it again"
end
expect(page).to have_content "You have reached the maximum number of attempts. Please try again later."