diff --git a/app/models/profile.rb b/app/models/profile.rb index fc1fcd6e30f..7c439e11054 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -279,11 +279,6 @@ def self.build_compound_pii(pii) values.join(':') end - def includes_phone_check? - return false if proofing_components.blank? - proofing_components['address_check'] == 'lexis_nexis_address' - end - def irs_attempts_api_tracker @irs_attempts_api_tracker ||= IrsAttemptsApi::Tracker.new end diff --git a/spec/models/profile_spec.rb b/spec/models/profile_spec.rb index 95d4e833a09..8e7f9f5c946 100644 --- a/spec/models/profile_spec.rb +++ b/spec/models/profile_spec.rb @@ -46,26 +46,6 @@ end end - describe '#includes_phone_check?' do - it 'returns true if the address_check component is lexis_nexis_address' do - profile = create(:profile, proofing_components: { address_check: 'lexis_nexis_address' }) - - expect(profile.includes_phone_check?).to eq(true) - end - - it 'returns false if the address_check componet is gpo_letter' do - profile = create(:profile, proofing_components: { address_check: 'gpo_letter' }) - - expect(profile.includes_phone_check?).to eq(false) - end - - it 'returns false if proofing_components is blank' do - profile = create(:profile, proofing_components: '') - - expect(profile.includes_phone_check?).to eq(false) - end - end - describe '#in_person_verification_pending?' do it 'returns true if the in_person_verification_pending_at is present' do profile = create(