Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Artur <fcardozo@gitlab.com>2019-03-04 12:21:47 +0300
committerSean McGivern <sean@gitlab.com>2019-03-04 12:21:47 +0300
commit78dc1b58a64be03e6d3622aab5605e1d5f6a6643 (patch)
treed0dd8c328bb0c7ce2311c79f525f7f23db9e0ff0 /spec/services/quick_actions
parent4b0036b87ee30ce0a3687dd052514b571f4d520f (diff)
Show commands applied message when promoting issues
Fix 'commands applied' messages not being shown when issue is promoted to epic using slash commands.
Diffstat (limited to 'spec/services/quick_actions')
-rw-r--r--spec/services/quick_actions/interpret_service_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/services/quick_actions/interpret_service_spec.rb b/spec/services/quick_actions/interpret_service_spec.rb
index 938764f40b0..ea33d156c8a 100644
--- a/spec/services/quick_actions/interpret_service_spec.rb
+++ b/spec/services/quick_actions/interpret_service_spec.rb
@@ -1526,5 +1526,15 @@ describe QuickActions::InterpretService do
end
end
end
+
+ context "#commands_executed_count" do
+ it 'counts commands executed' do
+ content = "/close and \n/assign me and \n/title new title"
+
+ service.execute(content, issue)
+
+ expect(service.commands_executed_count).to eq(3)
+ end
+ end
end
end