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

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

require 'spec_helper'

RSpec.describe Admin::AbuseReportDetailsSerializer, feature_category: :insider_threat do
  let_it_be(:resource) { build_stubbed(:abuse_report) }

  subject { described_class.new.represent(resource).keys }

  describe '#represent' do
    it 'serializes an abuse report' do
      is_expected.to match_array([
        :user,
        :report,
        :upload_note_attachment_path
      ])
    end
  end
end