summaryrefslogtreecommitdiff
path: root/spec/serializers/group_link/project_group_link_serializer_spec.rb
blob: ecd5d4d70e429e235231a2746caae6c0becdf771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GroupLink::ProjectGroupLinkSerializer do
  let_it_be(:project_group_links) { create_list(:project_group_link, 1) }

  subject(:json) { described_class.new.represent(project_group_links).to_json }

  it 'matches json schema' do
    expect(json).to match_schema('group_link/project_group_links')
  end
end