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

trigger_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: a669a8c3ed02206207bc579b95dbbfd3540e1c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Ci::TriggerSerializer do
  describe '#represent' do
    let(:represent) { described_class.new.represent(trigger) }

    let(:trigger) { build_stubbed(:ci_trigger) }

    it 'matches schema' do
      expect(represent.to_json).to match_schema('entities/trigger')
    end
  end
end