From 3a43606d24d9fddbe2532e66edf0f14dcb054b45 Mon Sep 17 00:00:00 2001 From: Walmyr Date: Mon, 20 May 2019 14:58:21 +0000 Subject: Apply suggestion to qa/docs/WRITING_TESTS_FROM_SCRATCH.md --- qa/docs/WRITING_TESTS_FROM_SCRATCH.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/docs/WRITING_TESTS_FROM_SCRATCH.md b/qa/docs/WRITING_TESTS_FROM_SCRATCH.md index b72f2383837..52a0dee2c8f 100644 --- a/qa/docs/WRITING_TESTS_FROM_SCRATCH.md +++ b/qa/docs/WRITING_TESTS_FROM_SCRATCH.md @@ -457,7 +457,7 @@ By defining the `api_get_path` method, we allow for the [`api_fabricator.rb`](ht By defining the `api_post_path` method, we allow for the [`ApiFabricator `](https://gitlab.com/gitlab-org/gitlab-ee/blob/master/qa/qa/resource/api_fabricator.rb) module to know which path to use to create a new label in a specific project. -And by defining the `api_post_body` method, we we allow for the [`api_post`](https://gitlab.com/gitlab-org/gitlab-ee/blob/master/qa/qa/resource/api_fabricator.rb#L65) method of the `api_fabricator.rb` file to know which data to send when making the POST request. +By defining the `api_post_body` method, we we allow for the [`ApiFabricator.api_post`](https://gitlab.com/gitlab-org/gitlab-ee/blob/a9177ca1812bac57e2b2fa4560e1d5dd8ffac38b/qa/qa/resource/api_fabricator.rb#L68) method to know which data to send when making the `POST` request. > Notice that we pass both `name` and `color` attributes in the `api_post_body` since [those are required](https://docs.gitlab.com/ee/api/labels.html#create-a-new-label). -- cgit v1.2.1