Skip to content

Commit

Permalink
dbex/99346-be-te-toggle-cleanup: remove unneeded tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sethdarragile6 committed Dec 30, 2024
1 parent 2351b2b commit a265a72
Showing 1 changed file with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,11 @@
let(:user) { loa1_user }
let!(:form_id) { '21-526EZ' }

it 'adds startedFormVersion when corresponding flag is enabled for user' do
it 'adds startedFormVersion for a user' do
get v0_disability_compensation_in_progress_form_url(form_id), params: nil
json_response = JSON.parse(response.body)
expect(json_response['formData']['startedFormVersion']).to eq('2022')
end

# it 'omits adding startedFormVersion when corresponding flag is not enabled for user' do
# get v0_disability_compensation_in_progress_form_url(form_id), params: nil
# json_response = JSON.parse(response.body)
# expect(json_response['formData']['startedFormVersion']).to eq(nil)
# end
end

context 'using the EVSS Rated Disabilities Provider' do
Expand Down Expand Up @@ -246,29 +240,6 @@
end
end

context 'when toxic exposure' do
it 'returns startedFormVersion as 2019 in the response for toxic exposure 1.1 release' do
VCR.use_cassette('evss/disability_compensation_form/rated_disabilities') do
get v0_disability_compensation_in_progress_form_url(in_progress_form.form_id), params: nil
end

expect(response).to have_http_status(:ok)
json_response = JSON.parse(response.body)
expect(json_response['formData']['startedFormVersion']).to eq('2019')
end

# # if the user with an IPF was not chosen for Toxic Exposure 1.1 release
# it 'does not return startedFormVersion' do
# VCR.use_cassette('lighthouse/veteran_verification/disability_rating/200_response') do
# get v0_disability_compensation_in_progress_form_url(in_progress_form.form_id), params: nil
# end
#
# expect(response).to have_http_status(:ok)
# json_response = JSON.parse(response.body)
# expect(json_response['formData']['startedFormVersion']).to eq(nil)
# end
end

describe '#index' do
subject do
get v0_disability_compensation_in_progress_forms_url, params: nil
Expand Down

0 comments on commit a265a72

Please sign in to comment.