Skip to content

Commit c4670fe

Browse files
committed
One more fix
1 parent 7dc167b commit c4670fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/integration/v2/jobs_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,15 @@
124124
end
125125

126126
context 'when log is missing' do
127-
it 'redirects to archived log url' do
127+
it 'returns the log retrieved from s3' do
128128
stub_request(:get, "#{Travis.config.logs_api.url}/logs/#{job.id}?by=job_id&source=api")
129129
.to_return(status: 404, body: '')
130130
response = get(
131131
"/jobs/#{job.id}/log.txt",
132132
{},
133133
{ 'HTTP_ACCEPT' => 'text/plain; version=2' }
134134
)
135-
expect(response.status).to eq(307)
136-
expect(response.location).to eq(archived_log_url)
135+
expect(response.status).to eq(200)
137136
end
138137
end
139138

0 commit comments

Comments
 (0)