Commit 0c83f747 authored by Phil Hughes's avatar Phil Hughes

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
parent 6068b863
...@@ -231,7 +231,7 @@ feature 'File blob', :js, feature: true do ...@@ -231,7 +231,7 @@ feature 'File blob', :js, feature: true do
branch_name: 'master', branch_name: 'master',
commit_message: "Add PDF", commit_message: "Add PDF",
file_path: 'files/test.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 ).execute
visit_blob('files/test.pdf') visit_blob('files/test.pdf')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment