Fix tests

This commit is contained in:
Hannes Rosenögger 2015-02-15 18:48:32 +01:00 committed by Douwe Maan
parent 9729cc584f
commit 192e730662
1 changed files with 2 additions and 2 deletions

View File

@ -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