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

downloadable_artifact_serializer_spec.rb « ci « serializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90f159a06f9f53c8153b858609a59a25c27bb5c3 (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 Ci::DownloadableArtifactSerializer do
  let(:pipeline) { create(:ci_pipeline, :with_codequality_reports) }
  let(:user) { create(:user) }
  let(:serializer) { described_class.new(current_user: user).represent(pipeline) }

  describe '#as_json' do
    subject { serializer.as_json }

    it 'matches schema' do
      expect(subject).to match_schema('entities/downloadable_artifact')
    end
  end
end