diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-04-04 21:52:47 +0000 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2019-04-04 21:52:47 +0000 |
commit | 677a7c811ee723d6c8c0fb8e2dc6e124d7dad028 (patch) | |
tree | 012d8925b1d973d2377ca82d75fb6f79be42d26c | |
parent | 1ddd9eff6dd931b0689743d571b7bf3fccedb979 (diff) | |
parent | 7aa36864c5cd5feb178f5fc83c3d69af10e58e9e (diff) | |
download | gitlab-ce-677a7c811ee723d6c8c0fb8e2dc6e124d7dad028.tar.gz |
Merge branch 'qa/replace-comment-by-variable' into 'master'
Replace comment by variable
See merge request gitlab-org/gitlab-ce!27007
-rw-r--r-- | qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb | 4 |
1 files 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 |