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
92d9053a
Commit
92d9053a
authored
Jul 20, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add present?
parent
1540cc43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
.../projects/pipeline_schedules/_pipeline_schedule.html.haml
+1
-1
spec/features/projects/pipeline_schedules_spec.rb
spec/features/projects/pipeline_schedules_spec.rb
+24
-0
No files found.
app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
View file @
92d9053a
...
...
@@ -4,7 +4,7 @@
=
pipeline_schedule
.
description
%td
.branch-name-cell
=
icon
(
'code-fork'
)
-
if
pipeline_schedule
.
ref
-
if
pipeline_schedule
.
ref
.
present?
=
link_to
pipeline_schedule
.
ref
,
project_ref_path
(
@project
,
pipeline_schedule
.
ref
),
class:
"ref-name"
%td
-
if
pipeline_schedule
.
last_pipeline
...
...
spec/features/projects/pipeline_schedules_spec.rb
View file @
92d9053a
...
...
@@ -70,6 +70,17 @@ feature 'Pipeline Schedules', :feature, js: true do
expect
(
first
(
'.branch-name-cell'
).
text
).
to
eq
(
''
)
end
end
context
'when ref is empty'
do
before
do
pipeline_schedule
.
update_attribute
(
:ref
,
''
)
visit_pipelines_schedules
end
it
'shows a list of the pipeline schedules with empty ref column'
do
expect
(
first
(
'.branch-name-cell'
).
text
).
to
eq
(
''
)
end
end
end
describe
'POST /projects/pipeline_schedules/new'
do
...
...
@@ -128,6 +139,19 @@ feature 'Pipeline Schedules', :feature, js: true do
end
end
end
context
'when ref is empty'
do
before
do
pipeline_schedule
.
update_attribute
(
:ref
,
''
)
edit_pipeline_schedule
end
it
'shows the pipeline schedule with default ref'
do
page
.
within
(
'.js-target-branch-dropdown'
)
do
expect
(
first
(
'.dropdown-toggle-text'
).
text
).
to
eq
(
'master'
)
end
end
end
end
context
'when user creates a new pipeline schedule with variables'
do
...
...
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