Skip to content
Snippets Groups Projects
Commit 192e7306 authored by Hannes Rosenögger's avatar Hannes Rosenögger Committed by Douwe Maan
Browse files

Fix tests

parent 9729cc58
Branches
Tags
No related merge requests found
Loading
@@ -30,7 +30,7 @@ describe ProjectsController do
Loading
@@ -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
Loading
@@ -42,7 +42,7 @@ describe ProjectsController do
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment