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

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

describe PipelineSerializer do
  let(:user) { create(:user) }
  let(:pipeline) { create(:ci_empty_pipeline) }

  let(:serializer) do
    described_class.new(user: user)
  end

  describe '#represent' do
    subject { serializer.represent(pipeline) }

    it 'serializers the pipeline object' do
      expect(subject.as_json).to include :id
    end
  end
end