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
2f70f3fa
Commit
2f70f3fa
authored
Jul 04, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve spec
parent
3acc9186
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
spec/controllers/projects/pipeline_schedules_controller_spec.rb
...ontrollers/projects/pipeline_schedules_controller_spec.rb
+9
-10
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+1
-1
spec/models/ci/pipeline_schedule_spec.rb
spec/models/ci/pipeline_schedule_spec.rb
+1
-0
No files found.
spec/controllers/projects/pipeline_schedules_controller_spec.rb
View file @
2f70f3fa
...
...
@@ -47,11 +47,11 @@ describe Projects::PipelineSchedulesController do
end
describe
'GET #new'
do
set
(
:user
)
{
create
(
:user
)
}
before
do
create
(
:user
).
tap
do
|
user
|
project
.
add_developer
(
user
)
sign_in
(
user
)
end
project
.
add_developer
(
user
)
sign_in
(
user
)
end
it
'initializes a pipeline schedule model'
do
...
...
@@ -64,11 +64,11 @@ describe Projects::PipelineSchedulesController do
describe
'POST #create'
do
describe
'functionality'
do
set
(
:user
)
{
create
(
:user
)
}
before
do
create
(
:user
).
tap
do
|
user
|
project
.
add_developer
(
user
)
sign_in
(
user
)
end
project
.
add_developer
(
user
)
sign_in
(
user
)
end
let
(
:basic_param
)
do
...
...
@@ -188,7 +188,7 @@ describe Projects::PipelineSchedulesController do
describe
'PUT #update'
do
describe
'functionality'
do
l
et
(
:user
)
{
create
(
:user
)
}
s
et
(
:user
)
{
create
(
:user
)
}
let!
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
project:
project
,
owner:
user
)
}
before
do
...
...
@@ -397,7 +397,6 @@ describe Projects::PipelineSchedulesController do
before
do
project
.
add_master
(
user
)
sign_in
(
user
)
end
...
...
spec/models/ci/build_spec.rb
View file @
2f70f3fa
...
...
@@ -1379,8 +1379,8 @@ describe Ci::Build, :models do
end
before
do
pipeline_schedule
.
reload
pipeline_schedule
.
pipelines
<<
pipeline
pipeline_schedule
.
reload
end
it
{
is_expected
.
to
include
(
pipeline_schedule_variable
.
to_runner_variable
)
}
...
...
spec/models/ci/pipeline_schedule_spec.rb
View file @
2f70f3fa
...
...
@@ -121,6 +121,7 @@ describe Ci::PipelineSchedule, models: true do
describe
'#job_variables'
do
let!
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
:nightly
)
}
let!
(
:pipeline_schedule_variables
)
do
create_list
(
:ci_pipeline_schedule_variable
,
2
,
pipeline_schedule:
pipeline_schedule
)
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