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:
authorRémy Coutable <remy@rymai.me>2016-08-10 15:12:09 +0300
committerRémy Coutable <remy@rymai.me>2016-08-13 01:06:12 +0300
commit23db6449542498636c145e83c71a4a466eb62746 (patch)
tree34619a5bccfe7864c29abfefc61268b5da86d35a /spec/support
parente021604454f1093b7d762b28eae36e30083f0053 (diff)
Add support for no-op slash commands that appear in autocomplete
The first one is /cc Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/issuable_slash_commands_shared_examples.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/support/issuable_slash_commands_shared_examples.rb b/spec/support/issuable_slash_commands_shared_examples.rb
index 4f2e7c3bee8..e1255bd248d 100644
--- a/spec/support/issuable_slash_commands_shared_examples.rb
+++ b/spec/support/issuable_slash_commands_shared_examples.rb
@@ -28,7 +28,7 @@ shared_examples 'issuable record that supports slash commands in its description
issuable = project.public_send(issuable_type.to_s.pluralize).first
- expect(issuable.description).to eq "bug description\r\n"
+ expect(issuable.description).to eq "bug description\n"
expect(issuable.labels).to eq [label_bug]
expect(issuable.milestone).to eq milestone
expect(page).to have_content 'bug 345'
@@ -57,7 +57,7 @@ shared_examples 'issuable record that supports slash commands in its description
issuable.reload
note = issuable.notes.user.first
- expect(note.note).to eq "Awesome!\r\n"
+ expect(note.note).to eq "Awesome!\n"
expect(issuable.assignee).to eq assignee
expect(issuable.labels).to eq [label_bug]
expect(issuable.milestone).to eq milestone
@@ -189,7 +189,6 @@ shared_examples 'issuable record that supports slash commands in its description
end
it "does not reopen the #{issuable_type}" do
- current_title = issuable.title
page.within('.js-main-target-form') do
fill_in 'note[note]', with: "/title Awesome new title"
click_button 'Comment'