debian-mirror-gitlab/spec/javascripts/fixtures/pdf.rb

19 lines
560 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
require 'spec_helper'
describe 'PDF file', '(JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers
let(:namespace) { create(:namespace, name: 'frontend-fixtures' )}
2017-09-10 17:25:29 +05:30
let(:project) { create(:project, :repository, namespace: namespace, path: 'pdf-project') }
2017-08-17 22:00:37 +05:30
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