Commit 192e7306 authored by Hannes Rosenögger's avatar Hannes Rosenögger Committed by Douwe Maan

Fix tests

parent 9729cc58
...@@ -30,7 +30,7 @@ describe ProjectsController do ...@@ -30,7 +30,7 @@ describe ProjectsController do
it 'returns a content with original filename, new link, and correct type.' 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 '\"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' expect(response.body).to match '\"is_image\":true'
end end
end end
...@@ -42,7 +42,7 @@ describe ProjectsController do ...@@ -42,7 +42,7 @@ describe ProjectsController do
it 'returns a content with original filename, new link, and correct type.' 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 '\"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' expect(response.body).to match '\"is_image\":false'
end end
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