From 56744742a9ca7f3fa2b92f31cddee212736008f3 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Wed, 25 Jul 2018 12:29:50 +0100 Subject: [PATCH] port ProjectMirrorSerializer --- app/serializers/project_mirror_serializer.rb | 3 +++ spec/serializers/project_mirror_serializer_spec.rb | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 app/serializers/project_mirror_serializer.rb create mode 100644 spec/serializers/project_mirror_serializer_spec.rb diff --git a/app/serializers/project_mirror_serializer.rb b/app/serializers/project_mirror_serializer.rb new file mode 100644 index 00000000000..7e9ba592252 --- /dev/null +++ b/app/serializers/project_mirror_serializer.rb @@ -0,0 +1,3 @@ +class ProjectMirrorSerializer < BaseSerializer + entity ProjectMirrorEntity +end diff --git a/spec/serializers/project_mirror_serializer_spec.rb b/spec/serializers/project_mirror_serializer_spec.rb new file mode 100644 index 00000000000..5e47163532a --- /dev/null +++ b/spec/serializers/project_mirror_serializer_spec.rb @@ -0,0 +1,7 @@ +require 'spec_helper' + +describe ProjectMirrorSerializer do + it 'represents ProjectMirror entities' do + expect(described_class.entity_class).to eq(ProjectMirrorEntity) + end +end