gitlab-org--gitlab-foss/spec/serializers/pipeline_serializer_spec.rb
2016-12-15 15:57:35 +01:00

18 lines
381 B
Ruby

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