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
4fb5a39d
Commit
4fb5a39d
authored
Jul 10, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'group_milestones_description' into 'master'
Group milestones description Fixes #1403 See merge request !958
parents
018602b4
4a505f38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
show.html.haml
app/views/groups/milestones/show.html.haml
+12
-0
group.feature
features/group.feature
+3
-1
group.rb
features/steps/group/group.rb
+9
-1
No files found.
app/views/groups/milestones/show.html.haml
View file @
4fb5a39d
...
...
@@ -26,6 +26,18 @@
%h4
.title
=
gfm
escape_once
(
@group_milestone
.
title
)
.description
-
@group_milestone
.
milestones
.
each
do
|
milestone
|
%hr
%h4
=
link_to
"
#{
milestone
.
project
.
name
}
-
#{
milestone
.
title
}
"
,
project_milestone_path
(
milestone
.
project
,
milestone
)
%span
.pull-right
=
milestone
.
expires_at
=
preserve
do
-
if
milestone
.
description
.
present?
=
milestone
.
description
-
else
%em
Project milestone has no description
.context
%p
Progress:
...
...
features/group.feature
View file @
4fb5a39d
...
...
@@ -121,6 +121,7 @@ Feature: Groups
Then
I should see user
"Mary Jane"
in team list
Then
I should not see user
"John Doe"
in team list
# Group milestones
Scenario
:
I
should see group
"Owned"
milestone index page with no milestones
When
I visit group
"Owned"
page
...
...
@@ -138,4 +139,5 @@ Feature: Groups
When
I visit group
"Owned"
page
And
I click on group milestones
And
I click on one group milestone
Then
I should see group milestone with all issues and MRs assigned to that milestone
Then
I should see group milestone with descriptions and expiry date
And
I should see group milestone with all issues and MRs assigned to that milestone
features/steps/group/group.rb
View file @
4fb5a39d
...
...
@@ -187,6 +187,12 @@ class Groups < Spinach::FeatureSteps
click_link
'GL-113'
end
step
'I should see group milestone with descriptions and expiry date'
do
page
.
should
have_content
(
'Lorem Ipsum is simply dummy text of the printing and typesetting industry'
)
page
.
should
have_content
(
'expires at Aug 20, 2014'
)
page
.
should
have_content
(
'Project milestone has no description'
)
end
step
'I should see group milestone with all issues and MRs assigned to that milestone'
do
page
.
should
have_content
(
'Milestone GL-113'
)
page
.
should
have_content
(
'Progress: 0 closed – 4 open'
)
...
...
@@ -232,7 +238,9 @@ class Groups < Spinach::FeatureSteps
project:
project2
milestone2_project3
=
create
:milestone
,
title:
"GL-113"
,
project:
@project3
project:
@project3
,
due_date:
'2014-08-20'
,
description:
'Lorem Ipsum is simply dummy text of the printing and typesetting industry'
@issue1
=
create
:issue
,
project:
@project1
,
assignee:
current_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