summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/slash_commands/presenters/error_spec.rb
blob: 30ff81510c114485157494e4e287a738903c5943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

describe Gitlab::SlashCommands::Presenters::Error do
  subject { described_class.new('Error').message }

  it { is_expected.to be_a(Hash) }

  it 'shows the error message' do
    expect(subject[:response_type]).to be(:ephemeral)
    expect(subject[:status]).to eq(200)
    expect(subject[:text]).to eq('Error')
  end
end