summaryrefslogtreecommitdiff
path: root/spec/controllers/projects
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-20 16:55:38 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-20 16:55:38 +0100
commit2570e4df79fa09d3c4abc1d0ec82c67a322b249e (patch)
tree2a48ff77aa9e9e6b8cdc32fb36a233c3a6dcc041 /spec/controllers/projects
parent7f1adc3d9cdc5c3f1c0fcbf6c72d89b8ee062af5 (diff)
downloadgitlab-ce-2570e4df79fa09d3c4abc1d0ec82c67a322b249e.tar.gz
Fix specs.
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r--spec/controllers/projects/uploads_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/uploads_controller_spec.rb b/spec/controllers/projects/uploads_controller_spec.rb
index 8c99b5ca528..28d313b7e98 100644
--- a/spec/controllers/projects/uploads_controller_spec.rb
+++ b/spec/controllers/projects/uploads_controller_spec.rb
@@ -29,7 +29,7 @@ describe Projects::UploadsController 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\":\"/#{project.path_with_namespace}/uploads"
+ expect(response.body).to match "\"url\":\"http://localhost/#{project.path_with_namespace}/uploads"
expect(response.body).to match '\"is_image\":true'
end
end
@@ -41,7 +41,7 @@ describe Projects::UploadsController 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\":\"/#{project.path_with_namespace}/uploads"
+ expect(response.body).to match "\"url\":\"http://localhost/#{project.path_with_namespace}/uploads"
expect(response.body).to match '\"is_image\":false'
end
end