Commit 92156021 authored by Mike Kozono's avatar Mike Kozono

Add in_replicables_for_geo_node? test

parent 6243a93b
......@@ -42,4 +42,12 @@ RSpec.describe Gitlab::Geo::ReplicableModel do
expect(subject.replicator).to be_a(Geo::DummyReplicator)
end
end
describe '#in_replicables_for_geo_node?' do
it 'reuses replicables_for_geo_node' do
expect(DummyModel).to receive(:replicables_for_geo_node).once.and_return(DummyModel.all)
subject.in_replicables_for_geo_node?
end
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