debian-mirror-gitlab/spec/serializers/ci/trigger_serializer_spec.rb
2021-01-03 14:25:43 +05:30

15 lines
348 B
Ruby

# 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