summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-07-11 19:14:04 +0200
committerWalmyr Lima <walmyr@gitlab.com>2019-07-11 19:14:07 +0200
commit513c0f6c729e89c0d9104f857453afd3897f7a61 (patch)
treecf5b0d75ed14f01b65958aad1c15f3c80bcd8abd /qa
parenta06107582f1271d2724f83d8606488b78cf03144 (diff)
downloadgitlab-ce-513c0f6c729e89c0d9104f857453afd3897f7a61.tar.gz
Explicitly create resources via the APIqa/explicitly-create-resources-via-api
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb
index b060f15168c..b2c70547421 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_ci_variable_spec.rb
@@ -7,12 +7,12 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
- project = Resource::Project.fabricate! do |project|
+ project = Resource::Project.fabricate_via_api! do |project|
project.name = 'project-with-ci-variables'
project.description = 'project with CI variables'
end
- Resource::CiVariable.fabricate! do |resource|
+ Resource::CiVariable.fabricate_via_api! do |resource|
resource.project = project
resource.key = 'VARIABLE_KEY'
resource.value = 'some_CI_variable'