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:
Diffstat (limited to 'spec/services/notes/slash_commands_service_spec.rb')
-rw-r--r--spec/services/notes/slash_commands_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/notes/slash_commands_service_spec.rb b/spec/services/notes/slash_commands_service_spec.rb
index 9a262fcf32f..4f231aab161 100644
--- a/spec/services/notes/slash_commands_service_spec.rb
+++ b/spec/services/notes/slash_commands_service_spec.rb
@@ -69,12 +69,12 @@ describe Notes::SlashCommandsService, services: true do
end
end
- describe '/open' do
+ describe '/reopen' do
before do
note.noteable.close!
expect(note.noteable).to be_closed
end
- let(:note_text) { '/open' }
+ let(:note_text) { '/reopen' }
it 'opens the noteable, and leave no note' do
content, command_params = service.extract_commands(note)
@@ -104,12 +104,12 @@ describe Notes::SlashCommandsService, services: true do
end
end
- describe '/open' do
+ describe '/reopen' do
before do
note.noteable.close
expect(note.noteable).to be_closed
end
- let(:note_text) { "HELLO\n/open\nWORLD" }
+ let(:note_text) { "HELLO\n/reopen\nWORLD" }
it 'opens the noteable' do
content, command_params = service.extract_commands(note)