diff options
author | Walmyr <walmyr@gitlab.com> | 2019-04-04 19:48:56 +0000 |
---|---|---|
committer | Walmyr Lima <walmyr@gitlab.com> | 2019-04-04 22:39:14 +0200 |
commit | 85859769aab80c9a17c140f8402a2bc76f5e89b5 (patch) | |
tree | 7f065b47244ec5aff0e4bc8dd0f4c0ecf0e39086 | |
parent | 9cd1d1d952437135db33217012de2e408524fe50 (diff) | |
download | gitlab-ce-qa/replace-comment-by-variable.tar.gz |
Apply mlappierre's suggestionqa/replace-comment-by-variable
-rw-r--r-- | qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb | 3 |
1 files changed, 1 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 27a255d17f0..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 @@ -9,11 +9,10 @@ module QA deploy_token_name = 'deploy token name' 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 - resource.expires_at = deploy_token_expires_at + resource.expires_at = one_week_from_now end expect(deploy_token.username.length).to be > 0 |