Added some Content-Type unit tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-08-19 19:15:37 -04:00
parent 98717db3d5
commit 8b2c152803
5 changed files with 45 additions and 1 deletions

View File

@@ -10,7 +10,11 @@ RSpec.describe(ReportsController) do
expect(last_response).to(be_ok)
end
it "Reports page contains 'Generate report' on page." do
it 'Reports page is an HTML response' do
expect(last_response['Content-Type']).to(include('text/html'))
end
it 'Reports page contains "Generate report" on page.' do
expect(last_response.body).to(include('Generate report'))
end
end