Commit d1b4770d authored by Lin Jen-Shin's avatar Lin Jen-Shin

Add comments about why we're stubbing them

parent 349db480
...@@ -583,8 +583,8 @@ describe API::MergeRequests do ...@@ -583,8 +583,8 @@ describe API::MergeRequests do
before do before do
fork_project.add_reporter(user2) fork_project.add_reporter(user2)
allow_any_instance_of(Repository).to receive(:fetch_ref) allow_any_instance_of(Repository).to receive(:fetch_ref) # for forks
allow_any_instance_of(Repository).to receive(:write_ref) allow_any_instance_of(Repository).to receive(:write_ref) # for non-forks
end end
it "returns merge_request" do it "returns merge_request" do
......
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