Commit a12ca22a authored by Michael Kozono's avatar Michael Kozono

Refactor ProjectRegistryFinder spec

In order to consistently test it with and without FDW enabled.
parent e4c31f25
...@@ -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