2020-09-28 14:09:40 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Ci::TriggerSerializer do
|
|
|
|
describe '#represent' do
|
|
|
|
let(:represent) { described_class.new.represent(trigger) }
|
|
|
|
|
2020-10-02 11:08:13 -04:00
|
|
|
let(:trigger) { build_stubbed(:ci_trigger) }
|
2020-09-28 14:09:40 -04:00
|
|
|
|
|
|
|
it 'matches schema' do
|
|
|
|
expect(represent.to_json).to match_schema('entities/trigger')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|