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
bf5248ac
Commit
bf5248ac
authored
Apr 11, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull in fixture files from the repo
parent
31049557
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
7 deletions
+49
-7
spec/javascripts/fixtures/raw.rb
spec/javascripts/fixtures/raw.rb
+24
-0
spec/javascripts/notebook/cells/code_spec.js
spec/javascripts/notebook/cells/code_spec.js
+5
-1
spec/javascripts/notebook/cells/markdown_spec.js
spec/javascripts/notebook/cells/markdown_spec.js
+6
-2
spec/javascripts/notebook/cells/output/index_spec.js
spec/javascripts/notebook/cells/output/index_spec.js
+5
-1
spec/javascripts/notebook/index_spec.js
spec/javascripts/notebook/index_spec.js
+7
-2
spec/support/test_env.rb
spec/support/test_env.rb
+2
-1
No files found.
spec/javascripts/fixtures/raw.rb
0 → 100644
View file @
bf5248ac
require
'spec_helper'
describe
'Raw files'
,
'(JavaScript fixtures)'
,
type: :controller
do
include
JavaScriptFixturesHelpers
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
namespace:
namespace
,
path:
'raw-project'
)
}
before
(
:all
)
do
clean_frontend_fixtures
(
'blob/notebook/'
)
end
it
'blob/notebook/basic.json'
do
|
example
|
blob
=
project
.
repository
.
blob_at
(
'6d85bb69'
,
'files/ipython/basic.ipynb'
)
store_frontend_fixture
(
blob
.
data
,
example
.
description
)
end
it
'blob/notebook/worksheets.json'
do
|
example
|
blob
=
project
.
repository
.
blob_at
(
'6d85bb69'
,
'files/ipython/worksheets.ipynb'
)
store_frontend_fixture
(
blob
.
data
,
example
.
description
)
end
end
spec/javascripts/notebook/cells/code_spec.js
View file @
bf5248ac
import
Vue
from
'
vue
'
;
import
CodeComponent
from
'
~/notebook/cells/code.vue
'
;
import
json
from
'
../../fixtures/notebook/file.json
'
;
const
Component
=
Vue
.
extend
(
CodeComponent
);
describe
(
'
Code component
'
,
()
=>
{
let
vm
;
let
json
;
beforeEach
(()
=>
{
json
=
getJSONFixture
(
'
blob/notebook/basic.json
'
);
});
describe
(
'
without output
'
,
()
=>
{
beforeEach
((
done
)
=>
{
...
...
spec/javascripts/notebook/cells/markdown_spec.js
View file @
bf5248ac
import
Vue
from
'
vue
'
;
import
MarkdownComponent
from
'
~/notebook/cells/markdown.vue
'
;
import
json
from
'
../../fixtures/notebook/file.json
'
;
const
cell
=
json
.
cells
[
1
];
const
Component
=
Vue
.
extend
(
MarkdownComponent
);
describe
(
'
Markdown component
'
,
()
=>
{
let
vm
;
let
cell
;
let
json
;
beforeEach
((
done
)
=>
{
json
=
getJSONFixture
(
'
blob/notebook/basic.json
'
);
cell
=
json
.
cells
[
1
];
vm
=
new
Component
({
propsData
:
{
cell
,
...
...
spec/javascripts/notebook/cells/output/index_spec.js
View file @
bf5248ac
import
Vue
from
'
vue
'
;
import
CodeComponent
from
'
~/notebook/cells/output/index.vue
'
;
import
json
from
'
../../../fixtures/notebook/file.json
'
;
const
Component
=
Vue
.
extend
(
CodeComponent
);
describe
(
'
Output component
'
,
()
=>
{
let
vm
;
let
json
;
const
createComponent
=
(
output
)
=>
{
vm
=
new
Component
({
...
...
@@ -17,6 +17,10 @@ describe('Output component', () => {
vm
.
$mount
();
};
beforeEach
(()
=>
{
json
=
getJSONFixture
(
'
blob/notebook/basic.json
'
);
});
describe
(
'
text output
'
,
()
=>
{
beforeEach
((
done
)
=>
{
createComponent
(
json
.
cells
[
2
].
outputs
[
0
]);
...
...
spec/javascripts/notebook/index_spec.js
View file @
bf5248ac
import
Vue
from
'
vue
'
;
import
Notebook
from
'
~/notebook/index.vue
'
;
import
json
from
'
../fixtures/notebook/file.json
'
;
import
jsonWithWorksheet
from
'
../fixtures/notebook/worksheets.json
'
;
const
Component
=
Vue
.
extend
(
Notebook
);
describe
(
'
Notebook component
'
,
()
=>
{
let
vm
;
let
json
;
let
jsonWithWorksheet
;
beforeEach
(()
=>
{
json
=
getJSONFixture
(
'
blob/notebook/basic.json
'
);
jsonWithWorksheet
=
getJSONFixture
(
'
blob/notebook/worksheets.json
'
);
});
describe
(
'
without JSON
'
,
()
=>
{
beforeEach
((
done
)
=>
{
...
...
spec/support/test_env.rb
View file @
bf5248ac
...
...
@@ -38,7 +38,8 @@ module TestEnv
'deleted-image-test'
=>
'6c17798'
,
'wip'
=>
'b9238ee'
,
'csv'
=>
'3dd0896'
,
'v1.1.0'
=>
'b83d6e3'
'v1.1.0'
=>
'b83d6e3'
,
'add-ipython-files'
=>
'6d85bb69'
}.
freeze
# gitlab-test-fork is a fork of gitlab-fork, but we don't necessarily
...
...
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