summaryrefslogtreecommitdiff
path: root/spec/serializers/group_link/group_group_link_serializer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/group_link/group_group_link_serializer_spec.rb')
-rw-r--r--spec/serializers/group_link/group_group_link_serializer_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/serializers/group_link/group_group_link_serializer_spec.rb b/spec/serializers/group_link/group_group_link_serializer_spec.rb
new file mode 100644
index 00000000000..a4ca32dae7b
--- /dev/null
+++ b/spec/serializers/group_link/group_group_link_serializer_spec.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe GroupLink::GroupGroupLinkSerializer do
+ include_context 'group_group_link'
+
+ subject(:json) { described_class.new.represent(shared_group.shared_with_group_links).to_json }
+
+ it 'matches json schema' do
+ expect(json).to match_schema('group_link/group_group_links')
+ end
+end