Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/development/testing_guide/end_to_end/resources.md')
-rw-r--r--doc/development/testing_guide/end_to_end/resources.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/development/testing_guide/end_to_end/resources.md b/doc/development/testing_guide/end_to_end/resources.md
index bf3f1c25f5e..735bab2fa0a 100644
--- a/doc/development/testing_guide/end_to_end/resources.md
+++ b/doc/development/testing_guide/end_to_end/resources.md
@@ -404,6 +404,15 @@ let(:issue) { create(:issue, project: project) }
# create a private project via the API with a specific name
let(:project) { create(:project, :private, name: 'my-project-name', add_name_uuid: false) }
+# create one commit in a project that performs three actions
+let(:commit) do
+ create(:commit, commit_message: 'my message', project: project, actions: [
+ { action: 'create', file_path: 'README.md', content: '# Welcome!' },
+ { action: 'update', file_path: 'README.md', content: '# Updated' },
+ { action: 'delete', file_path: 'README.md' }
+ ])
+end
+
###
# instantiate an Issue but don't create it via API yet