Welcome to mirror list, hosted at ThFree Co, Russian Federation.

incident_new_spec.rb « incident_management « presenters « slash_commands « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbc584b931fbd3c7c7e74d25fcb912bdcce6fac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::SlashCommands::Presenters::IncidentManagement::IncidentNew do
  subject { described_class.new }

  it 'returns the ephemeral message' do
    message = subject.present('It works!')

    expect(message).to be_a(Hash)
    expect(message[:text]).to eq('It works!')
    expect(message[:response_type]).to be(:ephemeral)
  end
end