Fix tests
This commit is contained in:
parent
9729cc584f
commit
192e730662
|
@ -30,7 +30,7 @@ describe ProjectsController do
|
|||
|
||||
it 'returns a content with original filename, new link, and correct type.' do
|
||||
expect(response.body).to match '\"alt\":\"rails_sample\"'
|
||||
expect(response.body).to match "\"url\":\"http://test.host/uploads/#{project.path_with_namespace}"
|
||||
expect(response.body).to match "\"url\":\"/#{project.path_with_namespace}/uploads"
|
||||
expect(response.body).to match '\"is_image\":true'
|
||||
end
|
||||
end
|
||||
|
@ -42,7 +42,7 @@ describe ProjectsController do
|
|||
|
||||
it 'returns a content with original filename, new link, and correct type.' do
|
||||
expect(response.body).to match '\"alt\":\"doc_sample.txt\"'
|
||||
expect(response.body).to match "\"url\":\"http://test.host/uploads/#{project.path_with_namespace}"
|
||||
expect(response.body).to match "\"url\":\"/#{project.path_with_namespace}/uploads"
|
||||
expect(response.body).to match '\"is_image\":false'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue