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

abuse_report_events_helper_spec.rb « resource_events « helpers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f711fb6773cbce9ade7e28da6a55edc371382a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ResourceEvents::AbuseReportEventsHelper, feature_category: :instance_resiliency do
  describe '#success_message_for_action' do
    using RSpec::Parameterized::TableSyntax

    where(:action, :action_value) do
      ResourceEvents::AbuseReportEvent.actions.to_a
    end

    with_them do
      it { expect(helper.success_message_for_action(action)).not_to be_nil }
    end
  end
end