Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab FOSS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab FOSS
Commits
32b59a1f
Commit
32b59a1f
authored
8 years ago
by
blackst0ne
Browse files
Options
Downloads
Patches
Plain Diff
Added specs
parent
24a9d694
No related branches found
No related tags found
1 merge request
!9252
Add merge request count to each issue on issues list
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/features/issuables/issuable_list_spec.rb
+13
-0
13 additions, 0 deletions
spec/features/issuables/issuable_list_spec.rb
with
13 additions
and
0 deletions
spec/features/issuables/issuable_list_spec.rb
+
13
−
0
View file @
32b59a1f
...
...
@@ -30,6 +30,12 @@
end
end
it
"counts merge requests closing issues icons for each issue"
do
visit_issuable_list
(
:issue
)
expect
(
first
(
'.icon-merge-request-unmerged'
).
find
(
:xpath
,
'..'
)).
to
have_content
(
1
)
end
def
visit_issuable_list
(
issuable_type
)
if
issuable_type
==
:issue
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
...
...
@@ -42,6 +48,13 @@ def create_issuables(issuable_type)
3
.
times
do
if
issuable_type
==
:issue
issuable
=
create
(
:issue
,
project:
project
,
author:
user
)
merge_request
=
create
(
:merge_request
,
title:
FFaker
::
Lorem
.
sentence
,
description:
"Closes
#{
issuable
.
to_reference
}
"
,
source_project:
project
,
source_branch:
FFaker
::
Name
.
name
)
MergeRequestsClosingIssues
.
create!
(
issue:
issuable
,
merge_request:
merge_request
)
else
issuable
=
create
(
:merge_request
,
title:
FFaker
::
Lorem
.
sentence
,
source_project:
project
,
source_branch:
FFaker
::
Name
.
name
)
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment