diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 13:29:47 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-18 14:23:26 +0100 |
commit | c72c76fde3882b7c2f778bf85132cd2c80f01f5b (patch) | |
tree | 00c937023d319a7c65efff1bf23f2238be142d57 /spec/lib | |
parent | dd826a5f20837f33263c658e41a4def0fc932069 (diff) | |
download | gitlab-ce-c72c76fde3882b7c2f778bf85132cd2c80f01f5b.tar.gz |
Fix typos
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/chat_commands/command_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/lib/gitlab/chat_commands/command_spec.rb b/spec/lib/gitlab/chat_commands/command_spec.rb index f44c848479e..8cedbb0240f 100644 --- a/spec/lib/gitlab/chat_commands/command_spec.rb +++ b/spec/lib/gitlab/chat_commands/command_spec.rb @@ -11,18 +11,19 @@ describe Gitlab::ChatCommands::Command, service: true do let(:params) { { text: 'issue show 1' } } let(:project) { create(:project, has_external_issue_tracker: true) } - it 'displays the help message' do + it 'displays 404 messages' do expect(subject[:response_type]).to be(:ephemeral) expect(subject[:text]).to start_with('404 not found') end end context 'when an unknown command is triggered' do - let(:params) { { text: "unknown command 123" } } + let(:params) { { command: '/gitlab', text: "unknown command 123" } } it 'displays the help message' do expect(subject[:response_type]).to be(:ephemeral) expect(subject[:text]).to start_with('Available commands') + expect(subject[:text]).to match('/gitlab issue show') end end @@ -35,7 +36,7 @@ describe Gitlab::ChatCommands::Command, service: true do end end - context 'issue is succesfully created' do + context 'issue is successfully created' do let(:params) { { text: "issue create my new issue" } } before do |