Skip to content

Commit

Permalink
stub flipper enabled call to call original for some specs
Browse files Browse the repository at this point in the history
  • Loading branch information
coope93 committed Nov 15, 2024
1 parent e2842e0 commit 7bf174d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/controllers/v0/contact_us/inquiries_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def send_create
post(:create, params: { ask: { form: } })
end

before do
allow(Flipper).to receive(:enabled?).and_call_original
end

context 'when Flipper :get_help_ask_form is' do
context 'disabled' do
it 'renders :not_implemented' do
Expand Down
4 changes: 4 additions & 0 deletions spec/models/saved_claim/education_benefits/va10203_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
let(:user) { create(:user) }
let!(:user_verification) { create(:idme_user_verification, idme_uuid: user.idme_uuid) }

before do
allow(Flipper).to receive(:enabled?).and_call_original
end

it_behaves_like 'saved_claim'

validate_inclusion(:form_id, '22-10203')
Expand Down
4 changes: 4 additions & 0 deletions spec/sidekiq/education_form/create_daily_spool_files_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
end
let(:line_break) { EducationForm::CreateDailySpoolFiles::WINDOWS_NOTEPAD_LINEBREAK }

before do
allow(Flipper).to receive(:enabled?).and_call_original
end

after(:all) do
FileUtils.rm_rf('tmp/spool_files')
end
Expand Down
4 changes: 4 additions & 0 deletions spec/sidekiq/education_form/process10203_submissions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
let(:no_edipi_user) { create(:user, participant_id: nil) }
let(:evss_response_with_poa) { OpenStruct.new(body: get_fixture('json/evss_with_poa')) }

before do
allow(Flipper).to receive(:enabled?).and_call_original
end

describe 'scheduling' do
before do
allow(Rails.env).to receive('development?').and_return(true)
Expand Down

0 comments on commit 7bf174d

Please sign in to comment.