diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-01-24 18:35:17 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-01-24 18:35:17 +0300 |
commit | 5e911c5d2c18b5f909f2072cc97bb75704496ea1 (patch) | |
tree | 4009ae1836b6f048ebcec5de3f7950101cd1affc /qa | |
parent | a17f4c23b706004c36242d6455c64f191e5082e5 (diff) |
Prefer local variables instead
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/project/add_deploy_key_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/qa/specs/features/project/add_deploy_key_spec.rb b/qa/qa/specs/features/project/add_deploy_key_spec.rb index 67d302a5593..b9998dda895 100644 --- a/qa/qa/specs/features/project/add_deploy_key_spec.rb +++ b/qa/qa/specs/features/project/add_deploy_key_spec.rb @@ -1,13 +1,13 @@ module QA feature 'deploy keys support', :core do - given(:key) { Runtime::RSAKey.new } - given(:deploy_key_title) { 'deploy key title' } - given(:deploy_key_value) { key.public_key } - scenario 'user adds a deploy key' do Runtime::Browser.visit(:gitlab, Page::Main::Login) Page::Main::Login.act { sign_in_using_credentials } + key = Runtime::RSAKey.new + deploy_key_title = 'deploy key title' + deploy_key_value = key.public_key + deploy_key = Factory::Resource::DeployKey.fabricate! do |resource| resource.title = deploy_key_title resource.key = deploy_key_value |