Commit 1166e667 authored by David O'Regan's avatar David O'Regan Committed by Heinrich Lee Yu

Add weight quick actions specs for incidents

parent 81e77674
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment