Skip to content
Snippets Groups Projects
Commit 31756894 authored by Arturo Herrero's avatar Arturo Herrero
Browse files

Docs: Update Gotchas page with comment clarifications

parent b70abe63
No related branches found
No related tags found
1 merge request!18593Docs: Update Gotchas page with comment clarifications
Pipeline #88978285 passed
......@@ -114,6 +114,7 @@ Instead of writing:
# Don't do this:
expect_any_instance_of(Project).to receive(:add_import_job)
# Don't do this:
allow_any_instance_of(Project).to receive(:add_import_job)
```
......@@ -125,6 +126,7 @@ expect_next_instance_of(Project) do |project|
expect(project).to receive(:add_import_job)
end
# Do this:
allow_next_instance_of(Project) do |project|
allow(project).to receive(:add_import_job)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment