Add comments about why we're stubbing them

This commit is contained in:
Lin Jen-Shin 2017-08-14 20:06:55 +08:00
parent 349db4802b
commit d1b4770d6c

View file

@ -583,8 +583,8 @@ describe API::MergeRequests do
before do
fork_project.add_reporter(user2)
allow_any_instance_of(Repository).to receive(:fetch_ref)
allow_any_instance_of(Repository).to receive(:write_ref)
allow_any_instance_of(Repository).to receive(:fetch_ref) # for forks
allow_any_instance_of(Repository).to receive(:write_ref) # for non-forks
end
it "returns merge_request" do