Merge PDF fixture into raw file fixtures
This commit is contained in:
parent
3e881f7aa5
commit
dff8bd0c03
2 changed files with 7 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'PDF file', '(JavaScript fixtures)', type: :controller do
|
||||
include JavaScriptFixturesHelpers
|
||||
|
||||
let(:namespace) { create(:namespace, name: 'frontend-fixtures' )}
|
||||
let(:project) { create(:project, :repository, 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
|
|
@ -9,6 +9,7 @@ describe 'Raw files', '(JavaScript fixtures)' do
|
|||
|
||||
before(:all) do
|
||||
clean_frontend_fixtures('blob/notebook/')
|
||||
clean_frontend_fixtures('blob/pdf/')
|
||||
end
|
||||
|
||||
after do
|
||||
|
@ -32,4 +33,10 @@ describe 'Raw files', '(JavaScript fixtures)' do
|
|||
|
||||
store_frontend_fixture(response, example.description)
|
||||
end
|
||||
|
||||
it 'blob/pdf/test.pdf' do |example|
|
||||
@blob = project.repository.blob_at('e774ebd33', 'files/pdf/test.pdf')
|
||||
|
||||
store_frontend_fixture(response, example.description)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue