Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
emilykim13 committed Oct 7, 2024
1 parent 814d89a commit 0fa34e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/sidekiq/terms_of_use/sign_up_service_updater_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@
allow(service_instance).to receive(:status).and_return(status)
end

it 'it updates the terms of use agreement in sign up service' do
it 'updates the terms of use agreement in sign up service' do
job.perform(user_account_uuid, version)

expect(service_instance).to have_received(:agreements_decline).with(icn: user_account.icn)
end

it 'it does not log that the agreement has not changed' do
it 'does not log that the agreement has not changed' do
job.perform(user_account_uuid, version)

expect(Rails.logger).not_to have_received(:info).with(expected_log, icn:)
Expand All @@ -254,7 +254,7 @@
expect(Rails.logger).to have_received(:info).with(expected_log, icn:)
end

it 'it does not update terms of use agreement in sign up service' do
it 'does not update terms of use agreement in sign up service' do
job.perform(user_account_uuid, version)

expect(service_instance).not_to have_received(:agreements_accept)
Expand All @@ -273,18 +273,18 @@
allow(service_instance).to receive(:agreements_accept)
end

it 'it does not log that the agreement has not changed' do
it 'does not log that the agreement has not changed' do
job.perform(user_account_uuid, version)

expect(Rails.logger).not_to have_received(:info).with(expected_log, icn:)
end

it 'it updates the terms of use agreement in sign up service' do
it 'updates the terms of use agreement in sign up service' do
job.perform(user_account_uuid, version)

expect(service_instance).to have_received(:agreements_accept).with(icn: user_account.icn,
signature_name: common_name,
version:)
signature_name: common_name,
version:)
end
end

Expand Down

0 comments on commit 0fa34e7

Please sign in to comment.