Commit 9edc899b authored by Robert Speicher's avatar Robert Speicher

Clarify update_repository spec

parent b948ec34
...@@ -147,13 +147,13 @@ describe RemoteMirror, :mailer do ...@@ -147,13 +147,13 @@ describe RemoteMirror, :mailer do
git_remote_mirror = stub_const('Gitlab::Git::RemoteMirror', spy) git_remote_mirror = stub_const('Gitlab::Git::RemoteMirror', spy)
mirror = build(:remote_mirror) mirror = build(:remote_mirror)
expect(mirror).to receive(:options_for_update).and_return(options: true) expect(mirror).to receive(:options_for_update).and_return(keep_divergent_refs: true)
mirror.update_repository mirror.update_repository
expect(git_remote_mirror).to have_received(:new).with( expect(git_remote_mirror).to have_received(:new).with(
mirror.project.repository.raw, mirror.project.repository.raw,
mirror.remote_name, mirror.remote_name,
options: true keep_divergent_refs: true
) )
expect(git_remote_mirror).to have_received(:update) expect(git_remote_mirror).to have_received(:update)
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