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
3690fbc1
Commit
3690fbc1
authored
Feb 25, 2021
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move parent_epic quick action specs
Move parent_epic quick action specs to correct context.
parent
375a76af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
ee/spec/services/quick_actions/interpret_service_spec.rb
ee/spec/services/quick_actions/interpret_service_spec.rb
+20
-8
No files found.
ee/spec/services/quick_actions/interpret_service_spec.rb
View file @
3690fbc1
...
...
@@ -582,6 +582,26 @@ RSpec.describe QuickActions::InterpretService do
end
end
context
'parent_epic command'
do
let
(
:epic
)
{
create
(
:epic
,
group:
group
)
}
let
(
:epic2
)
{
create
(
:epic
,
group:
group
)
}
let
(
:referenced_epic
)
{
create
(
:epic
,
group:
epic
.
group
)
}
before
do
group
.
add_developer
(
current_user
)
stub_licensed_features
(
epics:
true
,
subepics:
true
)
end
it_behaves_like
'adds quick action parameter'
,
:quick_action_assign_to_parent_epic
,
:parent_epic
context
'when target epic is not persisted yet'
do
let
(
:epic
)
{
build
(
:epic
,
group:
group
)
}
let
(
:referenced_epic
)
{
epic2
}
it_behaves_like
'adds quick action parameter'
,
:quick_action_assign_to_parent_epic
,
:parent_epic
end
end
context
'child_epic command'
do
let
(
:subgroup
)
{
create
(
:group
,
parent:
group
)
}
let
(
:another_group
)
{
create
(
:group
)
}
...
...
@@ -1259,7 +1279,6 @@ RSpec.describe QuickActions::InterpretService do
context
'parent_epic command'
do
let
(
:referenced_epic
)
{
epic2
}
it_behaves_like
'adds quick action parameter'
,
:quick_action_assign_to_parent_epic
,
:parent_epic
it_behaves_like
'returns execution messages'
,
:parent
context
'when epic is already a parent epic'
do
...
...
@@ -1288,13 +1307,6 @@ RSpec.describe QuickActions::InterpretService do
it_behaves_like
'target epic does not exist'
,
:parent
end
context
'when target epic is not persisted yet'
do
let
(
:epic
)
{
build
(
:epic
,
group:
group
)
}
let
(
:referenced_epic
)
{
epic2
}
it_behaves_like
'adds quick action parameter'
,
:quick_action_assign_to_parent_epic
,
:parent_epic
end
context
'when user has no permission to read epic'
do
let
(
:content
)
{
"/parent_epic
#{
epic2
&
.
to_reference
(
epic
)
}
"
}
...
...
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