Skip to content

Commit 5546a0f

Browse files
committed
Trying to fix failing requests
1 parent 80cdc49 commit 5546a0f

6 files changed

+6
-10
lines changed

modules/mobile/spec/models/user_accessible_services_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
describe 'claims' do
6161
context 'with mobile_lighthouse_claims flag off' do
6262
before { Flipper.disable(:mobile_lighthouse_claims) }
63-
after { Flipper.enable(:mobile_lighthouse_claims) }
6463

6564
context 'when user does not have evss access' do
6665
let(:user) { non_evss_user }

modules/mobile/spec/requests/mobile/v0/claims_and_appeals_spec.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
end
3434
end
3535

36-
after { Flipper.disable(:mobile_claims_log_decision_letter_sent) }
36+
after do
37+
Flipper.disable(:mobile_claims_log_decision_letter_sent)
38+
Flipper.enable(:mobile_lighthouse_claims)
39+
end
3740

3841
describe '#index is polled an unauthorized user' do
3942
it 'and not user returns a 401 status' do

modules/mobile/spec/requests/mobile/v0/evss_claim_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let!(:user) { sis_user }
1010

1111
before do
12-
Flipper.disable(:mobile_lighthouse_claims)
12+
allow(Flipper).to receive(:enabled?).with(:mobile_lighthouse_claims, instance_of(User)).and_return(false)
1313
create(:evss_claim, id: 1, evss_id: 600_117_255, user_uuid: user.uuid)
1414
create(:evss_claim, id: 2, evss_id: 111_222_333, user_uuid: '1234567890')
1515
end

modules/mobile/spec/requests/mobile/v0/lighthouse_claim_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
Flipper.enable_actor(:mobile_lighthouse_claims, user)
2020
end
2121

22-
after { Flipper.disable(:mobile_lighthouse_claims) }
23-
2422
context 'when the claim is found' do
2523
before do
2624
allow(Flipper).to receive(:enabled?).and_call_original

modules/mobile/spec/requests/mobile/v0/user_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
before do
1414
allow(Flipper).to receive(:enabled?).with(:remove_pciu, instance_of(User)).and_return(true)
1515
allow(Flipper).to receive(:enabled?).with(:mobile_lighthouse_letters, instance_of(User)).and_return(false)
16-
allow(Flipper).to receive(:enabled?).with(:mobile_lighthouse_claims, instance_of(User)).and_return(false)
16+
allow(Flipper).to receive(:enabled?).with(:mobile_lighthouse_claims, instance_of(User)).and_return(true)
1717
allow(Flipper).to receive(:enabled?).with(:mobile_lighthouse_direct_deposit, instance_of(User)).and_return(false)
1818
allow(Flipper).to receive(:enabled?).with(:mobile_lighthouse_disability_ratings,
1919
instance_of(User)).and_return(false)

modules/mobile/spec/sidekiq/legacy_pre_cache_claims_and_appeals_job_spec.rb

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
end
99

1010
before(:all) do
11-
Flipper.disable(:mobile_lighthouse_claims)
12-
end
13-
14-
after do
1511
Flipper.enable(:mobile_lighthouse_claims)
1612
end
1713

0 commit comments

Comments
 (0)