Added some more tests; changed URLs for model list pages and added redirects
This commit is contained in:
17
spec/controllers/reports_controller_spec.rb
Normal file
17
spec/controllers/reports_controller_spec.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../spec_helper'
|
||||
|
||||
RSpec.describe(ReportsController) do
|
||||
describe 'GET /report' do
|
||||
before { get '/report' }
|
||||
|
||||
it 'Reports page returns 200.' do
|
||||
expect(last_response).to(be_ok)
|
||||
end
|
||||
|
||||
it "Reports page contains 'Generate report' on page." do
|
||||
expect(last_response.body).to(include('Generate report'))
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user