Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ GEM
factory_bot_rails (6.4.3)
factory_bot (~> 6.4)
railties (>= 5.0.0)
faker (2.19.0)
i18n (>= 1.6, < 2)
faker (3.4.2)
i18n (>= 1.8.11, < 2)
faraday (2.10.0)
faraday-net_http (>= 2.0, < 3.2)
logger
Expand Down
6 changes: 3 additions & 3 deletions spec/controllers/users/email_confirmations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe 'Valid email confirmation tokens' do
it 'tracks a valid email confirmation token event' do
user = create(:user)
new_email = Faker::Internet.safe_email
new_email = Faker::Internet.email

expect(PushNotification::HttpPush).to receive(:deliver).once.
with(PushNotification::EmailChangedEvent.new(
Expand All @@ -27,7 +27,7 @@

it 'rejects an otherwise valid token for unconfirmed users' do
user = create(:user, :unconfirmed, email_addresses: [])
new_email = Faker::Internet.safe_email
new_email = Faker::Internet.email

add_email_form = AddUserEmailForm.new
add_email_form.submit(user, email: new_email)
Expand All @@ -41,7 +41,7 @@

it 'rejects expired tokens' do
user = create(:user)
new_email = Faker::Internet.safe_email
new_email = Faker::Internet.email

add_email_form = AddUserEmailForm.new
add_email_form.submit(user, email: new_email)
Expand Down
4 changes: 2 additions & 2 deletions spec/controllers/users/emails_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
stub_sign_in(user)

while EmailPolicy.new(user).can_add_email?
email = Faker::Internet.safe_email
email = Faker::Internet.email
user.email_addresses.create(email: email, confirmed_at: Time.zone.now)
end
end
Expand All @@ -53,7 +53,7 @@

context 'valid email exists in session' do
it 'sends email' do
email = Faker::Internet.safe_email
email = Faker::Internet.email

post :add, params: { user: { email: email } }

Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/users/sessions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@
render_views

it 'does not prefill the form' do
email = Faker::Internet.safe_email
email = Faker::Internet.email
password = SecureRandom.uuid

get :new, params: { user: { email: email, password: password } }
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/email_addresses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
factory :email_address do
confirmed_at { Time.zone.now }
confirmation_sent_at { Time.zone.now - 5.minutes }
email { Faker::Internet.safe_email }
email { Faker::Internet.email }
user { association :user }

trait :unconfirmed do
Expand Down
4 changes: 2 additions & 2 deletions spec/factories/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
until user.email_addresses.many?
user.email_addresses << build(
:email_address,
email: Faker::Internet.safe_email,
email: Faker::Internet.email,
confirmed_at: user.confirmed_at,
user_id: -1,
)
Expand All @@ -57,7 +57,7 @@
until user.email_addresses.many?
user.email_addresses << build(
:email_address,
email: Faker::Internet.safe_email,
email: Faker::Internet.email,
confirmed_at: user.confirmed_at,
user_id: -1,
)
Expand Down
2 changes: 1 addition & 1 deletion spec/features/users/sign_up_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
end

context 'picking a preferred email language on signup' do
let(:email) { Faker::Internet.safe_email }
let(:email) { Faker::Internet.email }

it 'allows a user to pick a language when entering email' do
visit sign_up_email_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
end

let(:user) { build(:user) }
let(:email) { Faker::Internet.safe_email }
let(:email) { Faker::Internet.email }

describe '#event_type' do
it 'is the RISC event type' do
Expand Down
2 changes: 1 addition & 1 deletion spec/services/push_notification/http_push_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
let(:event) do
PushNotification::IdentifierRecycledEvent.new(
user: user,
email: Faker::Internet.safe_email,
email: Faker::Internet.email,
)
end
let(:now) { Time.zone.now }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
end

let(:user) { build(:user) }
let(:email) { Faker::Internet.safe_email }
let(:email) { Faker::Internet.email }

describe '#event_type' do
it 'is the RISC event type' do
Expand Down
2 changes: 1 addition & 1 deletion spec/services/reset_user_password_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
end

it 'notifies the user via email to each of their confirmed email addresses' do
create(:email_address, user:, email: Faker::Internet.safe_email, confirmed_at: nil)
create(:email_address, user:, email: Faker::Internet.email, confirmed_at: nil)
expect { call }.
to(change { ActionMailer::Base.deliveries.count }.by(2))

Expand Down
4 changes: 2 additions & 2 deletions spec/services/usps_in_person_proofing/proofer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def expect_facility_fields_to_be_present(facility)
zip_code: Faker::Address.zip_code,
first_name: Faker::Name.first_name,
last_name: Faker::Name.last_name,
email: Faker::Internet.safe_email,
email: Faker::Internet.email,
unique_id: '123456789',
)
stub_request_token
Expand Down Expand Up @@ -291,7 +291,7 @@ def expect_facility_fields_to_be_present(facility)
zip_code: Faker::Address.zip_code,
first_name: Faker::Name.first_name,
last_name: Faker::Name.last_name,
email: Faker::Internet.safe_email,
email: Faker::Internet.email,
unique_id: '123456789',
)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/support/features/session_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def fill_in_password_and_submit(password)
end

def sign_up
email = Faker::Internet.safe_email
email = Faker::Internet.email
sign_up_with(email)
confirm_last_user
end
Expand Down