fill_indescription_field,with:'Description of the task'
fill_indeadline_field,with:'2020-06-24'
fill_intime_allowed_field,with:'30'
fill_inadditional_notes_field,with:'Additional note about the task'
click_on'Create Task request'
expect(page).tohave_contenttask_created_message
end
scenario'user can view task request details'do
create(:task_request,project:project,description:'Description of the task',deadline:'2020-07-23',time_allowed:'10',additional_notes:'Additional note about the task')
expect(page).tohave_content('Description of the task')
expect(page).tohave_content('2020-07-23')
expect(page).tohave_content('10')
expect(page).tohave_content('Additional note about the task')
end
scenario'user can update existing task request'do
create(:task_request,project:project,description:'Description of the task',deadline:'2020-08-23',time_allowed:'10',additional_notes:'Additional note about the task')
create(:task_request,project:project,description:'Description of the task',deadline:'2020-08-23',time_allowed:'10',additional_notes:'Additional note about the task')