BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
build_spec.js.es6
spec/javascripts/build_spec.js.es6
+1
-1
builds.rb
spec/javascripts/fixtures/builds.rb
+2
-1
issues.rb
spec/javascripts/fixtures/issues.rb
+2
-1
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 @@
...
@@ -10,7 +10,7 @@
//= require turbolinks
//= require turbolinks
describe('Build', () => {
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
// see spec/factories/ci/builds.rb
const BUILD_TRACE = 'BUILD TRACE';
const BUILD_TRACE = 'BUILD TRACE';
// see lib/ci/ansi2html.rb
// see lib/ci/ansi2html.rb
...
...
spec/javascripts/fixtures/builds.rb
View file @
82429b69
...
@@ -4,7 +4,8 @@ describe Projects::BuildsController, '(JavaScript fixtures)', type: :controller
...
@@ -4,7 +4,8 @@ describe Projects::BuildsController, '(JavaScript fixtures)', type: :controller
include
JavaScriptFixturesHelpers
include
JavaScriptFixturesHelpers
let
(
:admin
)
{
create
(
:admin
)
}
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
(
: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!
(
: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'
)
}
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
...
@@ -4,7 +4,8 @@ describe Projects::IssuesController, '(JavaScript fixtures)', type: :controller
include
JavaScriptFixturesHelpers
include
JavaScriptFixturesHelpers
let
(
:admin
)
{
create
(
:admin
)
}
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
render_views
...
...
spec/javascripts/issue_spec.js
View file @
82429b69
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
it
(
'submits an ajax request on tasklist:changed'
,
function
()
{
it
(
'submits an ajax request on tasklist:changed'
,
function
()
{
spyOn
(
jQuery
,
'ajax'
).
and
.
callFake
(
function
(
req
)
{
spyOn
(
jQuery
,
'ajax'
).
and
.
callFake
(
function
(
req
)
{
expect
(
req
.
type
).
toBe
(
'PATCH'
);
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
);
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