diff --git a/test/controllers/dashboards_controller_test.rb b/test/controllers/dashboards_controller_test.rb index 79027bb8..c3e669e4 100644 --- a/test/controllers/dashboards_controller_test.rb +++ b/test/controllers/dashboards_controller_test.rb @@ -9,11 +9,16 @@ class DashboardsControllerTest < ActionDispatch::IntegrationTest end test 'get dashboards index' do - params = { test: 'object' } + params = { dashboard: { + job_id: '1abas', user_id: '298486374', collection_id: '1234', + queue: 'download', start_time: '2018-08-01 08:48:01', + end_time: '2018-08-12 06:18:01' + } } auth_headers = { "Authorization" => "Basic #{Base64.encode64('test:test')}" } get dashboards_path, params: params, as: :html assert_response 401 get dashboards_path, params: params, as: :html, headers: auth_headers assert_response :success + assert_select 'td', 'Sample Collection' end end