Commit d82e30fa authored by Stan Hu's avatar Stan Hu

Merge branch 'mk/geo/refactor-project-registry-finder-spec' into 'master'

Geo: Refactor ProjectRegistryFinder spec

See merge request gitlab-org/gitlab-ee!5353
parents f97f2683 a12ca22a
...@@ -24,7 +24,7 @@ module Geo ...@@ -24,7 +24,7 @@ module Geo
if use_legacy_queries? if use_legacy_queries?
legacy_find_synced_wikis legacy_find_synced_wikis
else else
fdw_find_enabled_wikis fdw_find_synced_wikis
end end
relation.count relation.count
...@@ -158,7 +158,7 @@ module Geo ...@@ -158,7 +158,7 @@ module Geo
end end
# @return [ActiveRecord::Relation<Geo::ProjectRegistry>] # @return [ActiveRecord::Relation<Geo::ProjectRegistry>]
def fdw_find_enabled_wikis def fdw_find_synced_wikis
Geo::ProjectRegistry.synced_wikis.where(fdw_enabled_wikis) Geo::ProjectRegistry.synced_wikis.where(fdw_enabled_wikis)
end end
......
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