From 7aa36864c5cd5feb178f5fc83c3d69af10e58e9e Mon Sep 17 00:00:00 2001 From: Walmyr Date: Thu, 4 Apr 2019 21:52:46 +0000 Subject: Replace comment by variable Instead of having a comment describing what a specific value is, better to have a variable with a meaningful name. --- .../browser_ui/6_release/deploy_token/add_deploy_token_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 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..caa9be341b4 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,11 +8,11 @@ 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 = Resource::DeployToken.fabricate! do |resource| resource.name = deploy_token_name - resource.expires_at = deploy_token_expires_at + resource.expires_at = one_week_from_now end expect(deploy_token.username.length).to be > 0 -- cgit v1.2.1