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

error_spec.rb « 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: 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