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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
4102eb3b
Commit
4102eb3b
authored
Sep 01, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
parents
83a588c3
31773f4d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
0 deletions
+66
-0
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+2
-0
features/project/issues/issues.feature
features/project/issues/issues.feature
+30
-0
features/steps/project/issues.rb
features/steps/project/issues.rb
+34
-0
No files found.
app/views/projects/milestones/show.html.haml
View file @
4102eb3b
...
...
@@ -47,6 +47,8 @@
#{
@milestone
.
closed_items_count
}
closed
–
#{
@milestone
.
open_items_count
}
open
%span
.light
#{
@milestone
.
percent_complete
}
% complete
%span
.pull-right
=
@milestone
.
expires_at
.progress.progress-info
.progress-bar
{
style:
"width: #{@milestone.percent_complete}%;"
}
...
...
features/project/issues/issues.feature
View file @
4102eb3b
...
...
@@ -63,6 +63,36 @@ Feature: Project Issues
Then
I should see
"Release 0.3"
in issues
And
I should not see
"Release 0.4"
in issues
@javascript
Scenario
:
Search issues when search string exactly matches issue description
Given project 'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And
I fill in issue search with 'Description for issue1'
Then
I should see 'Bugfix1' in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
@javascript
Scenario
:
Search issues when search string partially matches issue description
Given project 'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And project 'Shop' has issue 'Feature1' with description
:
'Feature
submitted
for
issue1'
And
I fill in issue search with 'issue1'
Then
I should see 'Feature1' in issues
Then
I should see 'Bugfix1' in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
@javascript
Scenario
:
Search issues when search string matches no issue description
Given project 'Shop' has issue 'Bugfix1' with description
:
'Description
for
issue1'
And
I fill in issue search with 'Rock and roll'
Then
I should not see 'Bugfix1' in issues
And
I should not see
"Release 0.4"
in issues
And
I should not see
"Release 0.3"
in issues
And
I should not see
"Tweet control"
in issues
# Markdown
Scenario
:
Headers inside the description should have ids generated for them.
...
...
features/steps/project/issues.rb
View file @
4102eb3b
...
...
@@ -187,4 +187,38 @@ class ProjectIssues < Spinach::FeatureSteps
step
'The code block should be unchanged'
do
page
.
should
have_content
(
"```
\n
Command [1]: /usr/local/bin/git , see [text](doc/text)
\n
```"
)
end
step
'project \'Shop\' has issue \'Bugfix1\' with description: \'Description for issue1\''
do
project
=
Project
.
find_by
(
name:
'Shop'
)
issue
=
create
(
:issue
,
title:
'Bugfix1'
,
description:
'Description for issue1'
,
project:
project
)
end
step
'project \'Shop\' has issue \'Feature1\' with description: \'Feature submitted for issue1\''
do
project
=
Project
.
find_by
(
name:
'Shop'
)
issue
=
create
(
:issue
,
title:
'Feature1'
,
description:
'Feature submitted for issue1'
,
project:
project
)
end
step
'I fill in issue search with \'Description for issue1\''
do
fill_in
'issue_search'
,
with:
'Description for issue'
end
step
'I fill in issue search with \'issue1\''
do
fill_in
'issue_search'
,
with:
'issue1'
end
step
'I fill in issue search with \'Rock and roll\''
do
fill_in
'issue_search'
,
with:
'Description for issue'
end
step
'I should see \'Bugfix1\' in issues'
do
page
.
should
have_content
'Bugfix1'
end
step
'I should see \'Feature1\' in issues'
do
page
.
should
have_content
'Feature1'
end
step
'I should not see \'Bugfix1\' in issues'
do
page
.
should_not
have_content
'Bugfix1'
end
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