summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalmyr Lima <walmyr@gitlab.com>2019-04-04 17:59:17 +0200
committerWalmyr Lima <walmyr@gitlab.com>2019-04-04 22:37:12 +0200
commit9cd1d1d952437135db33217012de2e408524fe50 (patch)
treefc55b71bc99c26be674c9bad6ca82c175ad50a0e
parent4f2082caba98349d413124831bf3e19b1f83bf7a (diff)
downloadgitlab-ce-9cd1d1d952437135db33217012de2e408524fe50.tar.gz
Replace comment by variable
Instead of having a comment describing what a specific value is, better to have a variable with a meaningful name.
-rw-r--r--qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb b/qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb
index 9f34e4218c1..27a255d17f0 100644
--- a/qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb
+++ b/qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb
@@ -8,7 +8,8 @@ module QA
Page::Main::Login.act { sign_in_using_credentials }
deploy_token_name = 'deploy token name'
- deploy_token_expires_at = Date.today + 7 # 1 Week from now
+ one_week_from_now = Date.today + 7
+ deploy_token_expires_at = one_week_from_now
deploy_token = Resource::DeployToken.fabricate! do |resource|
resource.name = deploy_token_name