Commit 15b976c6 authored by Phil Hughes's avatar Phil Hughes

some fixes in spec/features/projects/jobs_spec.rb

not sure how to fix the ones with headers 🤔
parent 1ec2486c
...@@ -380,7 +380,6 @@ feature 'Jobs' do ...@@ -380,7 +380,6 @@ feature 'Jobs' do
end end
it 'loads the page and shows all needed controls' do it 'loads the page and shows all needed controls' do
expect(page.status_code).to eq(200)
expect(page).to have_content 'Retry' expect(page).to have_content 'Retry'
end end
end end
...@@ -396,7 +395,6 @@ feature 'Jobs' do ...@@ -396,7 +395,6 @@ feature 'Jobs' do
end end
it 'shows the right status and buttons', :js do it 'shows the right status and buttons', :js do
expect(page).to have_http_status(200)
page.within('aside.right-sidebar') do page.within('aside.right-sidebar') do
expect(page).to have_content 'Cancel' expect(page).to have_content 'Cancel'
end end
...@@ -450,7 +448,6 @@ feature 'Jobs' do ...@@ -450,7 +448,6 @@ feature 'Jobs' do
end end
it 'sends the right headers' do it 'sends the right headers' do
expect(page.status_code).to eq(200)
expect(page.response_headers['Content-Type']).to eq('text/plain; charset=utf-8') expect(page.response_headers['Content-Type']).to eq('text/plain; charset=utf-8')
expect(page.response_headers['X-Sendfile']).to eq(job.trace.send(:current_path)) expect(page.response_headers['X-Sendfile']).to eq(job.trace.send(:current_path))
end end
...@@ -490,7 +487,6 @@ feature 'Jobs' do ...@@ -490,7 +487,6 @@ feature 'Jobs' do
end end
it 'sends the right headers' do it 'sends the right headers' do
expect(page.status_code).to eq(200)
expect(page.response_headers['Content-Type']).to eq('text/plain; charset=utf-8') expect(page.response_headers['Content-Type']).to eq('text/plain; charset=utf-8')
expect(page.response_headers['X-Sendfile']).to eq(existing_file) expect(page.response_headers['X-Sendfile']).to eq(existing_file)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment