Commit 29cbf520 authored by Stan Hu's avatar Stan Hu

Fix MergeRequestPresenter spec by stubbing source branch exists condition

parent 161b776d
......@@ -443,6 +443,10 @@ describe MergeRequestPresenter do
let(:can_push_to_branch) { true }
let(:should_be_rebased) { true }
before do
allow(resource).to receive(:source_branch_exists?) { true }
end
it 'returns path' do
is_expected
.to eq("/#{project.full_path}/merge_requests/#{resource.iid}/rebase")
......
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