diff options
author | Sam Rose <sam@gitlab.com> | 2017-04-12 05:44:22 +0300 |
---|---|---|
committer | Sam Rose <sam@gitlab.com> | 2017-04-28 19:52:36 +0300 |
commit | 9f3985c6133507ac721abbb4c19049656008ec68 (patch) | |
tree | 2b1ccb4c3adf30ced424c690a8dc3a2e6e74fc35 /spec/javascripts/fixtures | |
parent | 6dc424c949ab3de9395d821b05d2e1cc5f632ed2 (diff) |
Move PDFLab into GitLab
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r-- | spec/javascripts/fixtures/pdf.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/pdf.rb b/spec/javascripts/fixtures/pdf.rb new file mode 100644 index 00000000000..6b2422a7986 --- /dev/null +++ b/spec/javascripts/fixtures/pdf.rb @@ -0,0 +1,18 @@ +require 'spec_helper' + +describe 'PDF file', '(JavaScript fixtures)', type: :controller do + include JavaScriptFixturesHelpers + + let(:namespace) { create(:namespace, name: 'frontend-fixtures' )} + let(:project) { create(:project, namespace: namespace, path: 'pdf-project') } + + before(:all) do + clean_frontend_fixtures('blob/pdf/') + end + + it 'blob/pdf/test.pdf' do |example| + blob = project.repository.blob_at('e774ebd33', 'files/pdf/test.pdf') + + store_frontend_fixture(blob.data.force_encoding("utf-8"), example.description) + end +end |