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
b6a7a8da
Commit
b6a7a8da
authored
Nov 21, 2019
by
Jarka Košanová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs - add a subgroup issue to an epic
parent
08943e5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
ee/spec/support/shared_examples/services/issue_epic_examples.rb
...c/support/shared_examples/services/issue_epic_examples.rb
+21
-4
No files found.
ee/spec/support/shared_examples/services/issue_epic_examples.rb
View file @
b6a7a8da
...
...
@@ -33,11 +33,28 @@ RSpec.shared_examples 'issue with epic_id parameter' do
let
(
:params
)
{
{
title:
'issue1'
,
epic_id:
epic
.
id
}
}
it
'creates epic issue link'
do
issue
=
execute
context
'when a project is a direct child of the epic group'
do
it
'creates epic issue link'
do
issue
=
execute
expect
(
issue
).
to
be_persisted
expect
(
issue
.
epic
).
to
eq
(
epic
)
expect
(
issue
).
to
be_persisted
expect
(
issue
.
epic
).
to
eq
(
epic
)
end
end
context
'when a project is from a subgroup of the epic group'
do
before
do
subgroup
=
create
(
:group
,
parent:
group
)
create
(
:epic
,
group:
subgroup
)
project
.
update
(
group:
subgroup
)
end
it
'creates epic issue link'
do
issue
=
execute
expect
(
issue
).
to
be_persisted
expect
(
issue
.
epic
).
to
eq
(
epic
)
end
end
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