diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-02 12:37:57 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-02 12:37:57 +0300 |
commit | 0c83f747ec68c08e84c59e5f1c2d4241e733a199 (patch) | |
tree | 468c78fe4296aa676d13a8cdaf30e0e1513f5483 /spec/features/projects/blobs/blob_show_spec.rb | |
parent | 6068b863c66f785bea0a56881d60e8c23da08a0b (diff) |
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
Diffstat (limited to 'spec/features/projects/blobs/blob_show_spec.rb')
-rw-r--r-- | spec/features/projects/blobs/blob_show_spec.rb | 2 |
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') |