Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Rani committed Nov 3, 2023
1 parent de3a029 commit 0c8e338
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/controllers/api/vulnerabilities_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Api::VulnerabilitiesControllerTest < ActionDispatch::IntegrationTest
end

it 'must render error page for unmatched vulnerabilities routes' do
get '/vulnerabilities/bdsa'
get '/vulnerabilities/bdsa_data'
assert_response :not_found
assert_template 'error'
end
Expand Down Expand Up @@ -56,4 +56,9 @@ class Api::VulnerabilitiesControllerTest < ActionDispatch::IntegrationTest
_(response.body).must_match 'Agree'
end
end

it 'must render BDSA landing page' do
get '/vulnerabilities/bdsa'
assert_response :success
end
end

0 comments on commit 0c8e338

Please sign in to comment.