summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-01-25 21:40:27 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-01-25 21:40:27 +0800
commit3d4a7f63cbf197465fa556ece387b57f57176d10 (patch)
tree237c8487fe0c34d70a03172c81ff6e80697d235f /qa
parentf5efeeb807e6c88c380a76bdfb2258ff8b0303cd (diff)
downloadgitlab-ce-3d4a7f63cbf197465fa556ece387b57f57176d10.tar.gz
Prefer local variables over given/let
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/specs/features/project/add_secret_variable_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/qa/specs/features/project/add_secret_variable_spec.rb b/qa/qa/specs/features/project/add_secret_variable_spec.rb
index 803ced6e3fc..36422a92afc 100644
--- a/qa/qa/specs/features/project/add_secret_variable_spec.rb
+++ b/qa/qa/specs/features/project/add_secret_variable_spec.rb
@@ -1,12 +1,12 @@
module QA
feature 'secret variables support', :core do
- given(:variable_key) { 'VARIABLE_KEY' }
- given(:variable_value) { 'variable value' }
-
scenario 'user adds a secret variable' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
+ variable_key = 'VARIABLE_KEY'
+ variable_value = 'variable value'
+
variable = Factory::Resource::SecretVariable.fabricate! do |resource|
resource.key = variable_key
resource.value = variable_value