diff options
Diffstat (limited to 'spec/models/remote_mirror_spec.rb')
-rw-r--r-- | spec/models/remote_mirror_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/remote_mirror_spec.rb b/spec/models/remote_mirror_spec.rb index 382718620f5..537fdbc7c8f 100644 --- a/spec/models/remote_mirror_spec.rb +++ b/spec/models/remote_mirror_spec.rb @@ -289,6 +289,14 @@ RSpec.describe RemoteMirror, :mailer do end end + context 'with silent mode enabled' do + it 'returns nil' do + allow(Gitlab::SilentMode).to receive(:enabled?).and_return(true) + + expect(remote_mirror.sync).to be_nil + end + end + context 'with remote mirroring enabled' do it 'defaults to disabling only protected branches' do expect(remote_mirror.only_protected_branches?).to be_falsey |