summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-02 10:37:57 +0100
committerPhil Hughes <me@iamphill.com>2017-05-02 10:37:57 +0100
commit0c83f747ec68c08e84c59e5f1c2d4241e733a199 (patch)
tree468c78fe4296aa676d13a8cdaf30e0e1513f5483
parent6068b863c66f785bea0a56881d60e8c23da08a0b (diff)
downloadgitlab-ce-0c83f747ec68c08e84c59e5f1c2d4241e733a199.tar.gz
Fixed PDF blob specs
The PDF file is no longer included in the repo, so we need to create the PDF before running the tests
-rw-r--r--spec/features/projects/blobs/blob_show_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/projects/blobs/blob_show_spec.rb b/spec/features/projects/blobs/blob_show_spec.rb
index 6a6f8b4f4d5..8dba2ccbafa 100644
--- a/spec/features/projects/blobs/blob_show_spec.rb
+++ b/spec/features/projects/blobs/blob_show_spec.rb
@@ -231,7 +231,7 @@ feature 'File blob', :js, feature: true do
branch_name: 'master',
commit_message: "Add PDF",
file_path: 'files/test.pdf',
- file_content: File.read(Rails.root.join('spec/javascripts/blob/pdf/test.pdf'))
+ file_content: project.repository.blob_at('add-pdf-file', 'files/pdf/test.pdf').data
).execute
visit_blob('files/test.pdf')