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
1166e667
Commit
1166e667
authored
Sep 11, 2020
by
David O'Regan
Committed by
Heinrich Lee Yu
Sep 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add weight quick actions specs for incidents
parent
81e77674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
ee/spec/services/quick_actions/interpret_service_spec.rb
ee/spec/services/quick_actions/interpret_service_spec.rb
+20
-0
No files found.
ee/spec/services/quick_actions/interpret_service_spec.rb
View file @
1166e667
...
...
@@ -867,6 +867,26 @@ RSpec.describe QuickActions::InterpretService do
end
end
context
'issuable weights not supported by type'
do
let_it_be
(
:incident
)
{
create
(
:incident
,
project:
project
)
}
before
do
stub_licensed_features
(
issue_weights:
true
)
end
it
'does not recognise /weight X'
do
_
,
updates
=
service
.
execute
(
'/weight 5'
,
incident
)
expect
(
updates
).
to
be_empty
end
it
'does not recognise /clear_weight'
do
_
,
updates
=
service
.
execute
(
'/clear_weight'
,
incident
)
expect
(
updates
).
to
be_empty
end
end
shared_examples
'empty command'
do
it
'populates {} if content contains an unsupported command'
do
_
,
updates
=
service
.
execute
(
content
,
issuable
)
...
...
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