diff options
Diffstat (limited to 'spec/lib/gitlab/chat_commands/presenters/issue_new_spec.rb')
-rw-r--r-- | spec/lib/gitlab/chat_commands/presenters/issue_new_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/lib/gitlab/chat_commands/presenters/issue_new_spec.rb b/spec/lib/gitlab/chat_commands/presenters/issue_new_spec.rb deleted file mode 100644 index 17fcdbc2452..00000000000 --- a/spec/lib/gitlab/chat_commands/presenters/issue_new_spec.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'spec_helper' - -describe Gitlab::ChatCommands::Presenters::IssueNew do - let(:project) { create(:empty_project) } - let(:issue) { create(:issue, project: project) } - let(:attachment) { subject[:attachments].first } - - subject { described_class.new(issue).present } - - it { is_expected.to be_a(Hash) } - - it 'shows the issue' do - expect(subject[:response_type]).to be(:in_channel) - expect(subject).to have_key(:attachments) - expect(attachment[:title]).to start_with(issue.title) - end -end |