Commit 623dbc1f authored by Lin Jen-Shin's avatar Lin Jen-Shin Committed by Douwe Maan

rm_tag now takes a user argument

parent d779f67c
......@@ -152,7 +152,7 @@ describe Projects::UpdateRemoteMirrorService do
remote_tags = generate_tags(repository, 'v1.0.0', 'v1.1.0')
allow(repository).to receive(:remote_tags) { remote_tags }
repository.rm_tag('v1.0.0')
repository.rm_tag(create(:user), 'v1.0.0')
expect(repository).to receive(:delete_remote_branches).with(remote_mirror.ref_name, ['v1.0.0'])
......
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