Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
dff8bd0c
Commit
dff8bd0c
authored
Apr 20, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge PDF fixture into raw file fixtures
parent
3e881f7a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
18 deletions
+7
-18
spec/javascripts/fixtures/pdf.rb
spec/javascripts/fixtures/pdf.rb
+0
-18
spec/javascripts/fixtures/raw.rb
spec/javascripts/fixtures/raw.rb
+7
-0
No files found.
spec/javascripts/fixtures/pdf.rb
deleted
100644 → 0
View file @
3e881f7a
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
spec/javascripts/fixtures/raw.rb
View file @
dff8bd0c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment