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
Jérome Perrin
gitlab-ce
Commits
82429b69
Commit
82429b69
authored
Nov 20, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly name namespace and projects for frontend fixtures
parent
918bc207
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
spec/javascripts/build_spec.js.es6
spec/javascripts/build_spec.js.es6
+1
-1
spec/javascripts/fixtures/builds.rb
spec/javascripts/fixtures/builds.rb
+2
-1
spec/javascripts/fixtures/issues.rb
spec/javascripts/fixtures/issues.rb
+2
-1
spec/javascripts/issue_spec.js
spec/javascripts/issue_spec.js
+1
-1
No files found.
spec/javascripts/build_spec.js.es6
View file @
82429b69
...
...
@@ -10,7 +10,7 @@
//= require turbolinks
describe('Build', () => {
const BUILD_URL = `${gl.TEST_HOST}/
namespace1/project1
/builds/1`;
const BUILD_URL = `${gl.TEST_HOST}/
frontend-fixtures/builds-project
/builds/1`;
// see spec/factories/ci/builds.rb
const BUILD_TRACE = 'BUILD TRACE';
// see lib/ci/ansi2html.rb
...
...
spec/javascripts/fixtures/builds.rb
View file @
82429b69
...
...
@@ -4,7 +4,8 @@ describe Projects::BuildsController, '(JavaScript fixtures)', type: :controller
include
JavaScriptFixturesHelpers
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:project
)
{
create
(
:project_empty_repo
)
}
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project_empty_repo
,
namespace:
namespace
,
path:
'builds-project'
)
}
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
project:
project
)
}
let!
(
:build_with_artifacts
)
{
create
(
:ci_build
,
:success
,
:artifacts
,
:trace
,
pipeline:
pipeline
,
stage:
'test'
,
artifacts_expire_at:
Time
.
now
+
18
.
months
)
}
let!
(
:failed_build
)
{
create
(
:ci_build
,
:failed
,
pipeline:
pipeline
,
stage:
'build'
)
}
...
...
spec/javascripts/fixtures/issues.rb
View file @
82429b69
...
...
@@ -4,7 +4,8 @@ describe Projects::IssuesController, '(JavaScript fixtures)', type: :controller
include
JavaScriptFixturesHelpers
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:project
)
{
create
(
:project_empty_repo
)
}
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project_empty_repo
,
namespace:
namespace
,
path:
'issues-project'
)
}
render_views
...
...
spec/javascripts/issue_spec.js
View file @
82429b69
...
...
@@ -74,7 +74,7 @@
it
(
'
submits an ajax request on tasklist:changed
'
,
function
()
{
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
(
function
(
req
)
{
expect
(
req
.
type
).
toBe
(
'
PATCH
'
);
expect
(
req
.
url
).
toBe
(
gl
.
TEST_HOST
+
'
/
namespace3/project3/issues/1.json
'
);
expect
(
req
.
url
).
toBe
(
gl
.
TEST_HOST
+
'
/
frontend-fixtures/issues-project/issues/1.json
'
);
// eslint-disable-line prefer-template
expect
(
req
.
data
.
issue
.
description
).
not
.
toBe
(
null
);
});
...
...
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