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
Boxiang Sun
gitlab-ce
Commits
9613f7e2
Commit
9613f7e2
authored
Oct 02, 2018
by
Shinya Maeda
Committed by
Alessio Caiazza
Oct 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub feature flag for spec
parent
7fe14c42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+4
-0
spec/services/ci/run_scheduled_build_service_spec.rb
spec/services/ci/run_scheduled_build_service_spec.rb
+4
-0
No files found.
spec/models/ci/build_spec.rb
View file @
9613f7e2
...
@@ -327,6 +327,10 @@ describe Ci::Build do
...
@@ -327,6 +327,10 @@ describe Ci::Build do
describe
'#enqueue_scheduled'
do
describe
'#enqueue_scheduled'
do
subject
{
build
.
enqueue_scheduled
}
subject
{
build
.
enqueue_scheduled
}
before
do
stub_feature_flags
(
ci_enable_scheduled_build:
true
)
end
context
'when build is scheduled and the right time has not come yet'
do
context
'when build is scheduled and the right time has not come yet'
do
let
(
:build
)
{
create
(
:ci_build
,
:scheduled
,
pipeline:
pipeline
)
}
let
(
:build
)
{
create
(
:ci_build
,
:scheduled
,
pipeline:
pipeline
)
}
...
...
spec/services/ci/run_scheduled_build_service_spec.rb
View file @
9613f7e2
...
@@ -7,6 +7,10 @@ describe Ci::RunScheduledBuildService do
...
@@ -7,6 +7,10 @@ describe Ci::RunScheduledBuildService do
subject
{
described_class
.
new
(
project
,
user
).
execute
(
build
)
}
subject
{
described_class
.
new
(
project
,
user
).
execute
(
build
)
}
before
do
stub_feature_flags
(
ci_enable_scheduled_build:
true
)
end
context
'when user can update build'
do
context
'when user can update build'
do
before
do
before
do
project
.
add_developer
(
user
)
project
.
add_developer
(
user
)
...
...
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