Commit b29dc6e7 authored by Robert Speicher's avatar Robert Speicher

CE-EE parity for ee/spec/models/remote_mirror_spec.rb

parent 11b6b0d2
require 'spec_helper'
describe RemoteMirror do
let(:project) { create(:project, :repository, :remote_mirror) }
describe '#sync' do
let(:remote_mirror) { project.remote_mirrors.first }
context 'as a Geo secondary' do
it 'returns nil' do
allow(Gitlab::Geo).to receive(:secondary?).and_return(true)
expect(remote_mirror.sync).to be_nil
end
end
end
end
......@@ -173,14 +173,6 @@ describe RemoteMirror do
end
end
context 'as a Geo secondary' do
it 'returns nil' do
allow(Gitlab::Geo).to receive(:secondary?).and_return(true)
expect(remote_mirror.sync).to be_nil
end
end
context 'with remote mirroring enabled' do
context 'with only protected branches enabled' do
context 'when it did not update in the last minute' 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