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:
authorThomas Balthazar <thomas@balthazar.info>2016-09-08 12:18:41 +0300
committerThomas Balthazar <thomas@balthazar.info>2016-10-03 10:36:21 +0300
commitddbe676dc318b87c3d656a08bbf5d75485ad544b (patch)
treedb8d14ffb9979d8d46772776237e33815848222e /spec/features/issues/user_uses_slash_commands_spec.rb
parentbcb2699f04646e4738bb87410aab49b2c3a686fb (diff)
Add a /wip slash command
It toggles the 'WIP' prefix in the MR title.
Diffstat (limited to 'spec/features/issues/user_uses_slash_commands_spec.rb')
-rw-r--r--spec/features/issues/user_uses_slash_commands_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/issues/user_uses_slash_commands_spec.rb b/spec/features/issues/user_uses_slash_commands_spec.rb
index bf2b93c92fb..3f2da1c380c 100644
--- a/spec/features/issues/user_uses_slash_commands_spec.rb
+++ b/spec/features/issues/user_uses_slash_commands_spec.rb
@@ -99,5 +99,15 @@ feature 'Issues > User uses slash commands', feature: true, js: true do
end
end
end
+
+ describe 'toggling the WIP prefix from the title from note' do
+ let(:issue) { create(:issue, project: project) }
+
+ it 'does not recognize the command nor create a note' do
+ write_note("/wip")
+
+ expect(page).not_to have_content '/wip'
+ end
+ end
end
end