Commit 49c55ec7 authored by James Lopez's avatar James Lopez

rename project registry

parent 36b6cac8
class ProjectRegistryEntity < Grape::Entity
class GeoProjectRegistryEntity < Grape::Entity
include ActionView::Helpers::NumberHelper
expose :project_id
......
class GeoProjectRegistrySerializer < BaseSerializer
entity GeoProjectRegistryEntity
end
class ProjectRegistrySerializer < BaseSerializer
entity ProjectRegistryEntity
end
......@@ -101,7 +101,7 @@ module API
project_registries = paginate(geo_node.filtered_project_registries(params[:type]))
present project_registries, with: ::ProjectRegistryEntity
present project_registries, with: ::GeoProjectRegistryEntity
end
end
end
......
require 'spec_helper'
describe ProjectRegistryEntity, :postgresql do
describe GeoProjectRegistryEntity, :postgresql do
let(:registry) { create(:geo_project_registry, :synced) }
let(:entity) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment