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,4 +1,4 @@
require 'rails_helper'
require "rails_helper"
describe Verification::Letter do

View File

@@ -1,4 +1,4 @@
require 'rails_helper'
require "rails_helper"
describe Verification::Management::Document do
let(:min_age) { User.minimum_required_age }
@@ -8,34 +8,34 @@ describe Verification::Management::Document do
describe "#valid_age?" do
it "returns false when the user is younger than the user's minimum required age" do
census_response = instance_double('CensusApi::Response', date_of_birth: under_minium_age_date_of_birth)
census_response = instance_double("CensusApi::Response", date_of_birth: under_minium_age_date_of_birth)
expect(described_class.new.valid_age?(census_response)).to be false
end
it "returns true when the user has the user's minimum required age" do
census_response = instance_double('CensusApi::Response', date_of_birth: just_minium_age_date_of_birth)
census_response = instance_double("CensusApi::Response", date_of_birth: just_minium_age_date_of_birth)
expect(described_class.new.valid_age?(census_response)).to be true
end
it "returns true when the user is older than the user's minimum required age" do
census_response = instance_double('CensusApi::Response', date_of_birth: over_minium_age_date_of_birth)
census_response = instance_double("CensusApi::Response", date_of_birth: over_minium_age_date_of_birth)
expect(described_class.new.valid_age?(census_response)).to be true
end
end
describe "#under_age?" do
it "returns true when the user is younger than the user's minimum required age" do
census_response = instance_double('CensusApi::Response', date_of_birth: under_minium_age_date_of_birth)
census_response = instance_double("CensusApi::Response", date_of_birth: under_minium_age_date_of_birth)
expect(described_class.new.under_age?(census_response)).to be true
end
it "returns false when the user is user's minimum required age" do
census_response = instance_double('CensusApi::Response', date_of_birth: just_minium_age_date_of_birth)
census_response = instance_double("CensusApi::Response", date_of_birth: just_minium_age_date_of_birth)
expect(described_class.new.under_age?(census_response)).to be false
end
it "returns false when the user is older than user's minimum required age" do
census_response = instance_double('CensusApi::Response', date_of_birth: over_minium_age_date_of_birth)
census_response = instance_double("CensusApi::Response", date_of_birth: over_minium_age_date_of_birth)
expect(described_class.new.under_age?(census_response)).to be false
end
end

View File

@@ -1,4 +1,4 @@
require 'rails_helper'
require "rails_helper"
describe Verification::Management::Email do

View File

@@ -1,4 +1,4 @@
require 'rails_helper'
require "rails_helper"
describe Verification::Residence do
@@ -70,12 +70,12 @@ describe Verification::Residence do
residence.save
user.reload
expect(user.document_number).to eq('12345678Z')
expect(user.document_number).to eq("12345678Z")
expect(user.document_type).to eq("1")
expect(user.date_of_birth.year).to eq(1980)
expect(user.date_of_birth.month).to eq(12)
expect(user.date_of_birth.day).to eq(31)
expect(user.gender).to eq('male')
expect(user.gender).to eq("male")
expect(user.geozone).to eq(geozone)
end

View File

@@ -1,4 +1,4 @@
require 'rails_helper'
require "rails_helper"
describe Verification::Sms do
it "is valid" do