Rename DeployKey to DeployKeys

This commit is contained in:
Lin Jen-Shin 2017-12-28 20:50:22 +08:00
parent 7377b97c5f
commit 2078cb4e84
3 changed files with 4 additions and 4 deletions

View file

@ -89,7 +89,7 @@ module QA
module Settings
autoload :Repository, 'qa/page/project/settings/repository'
autoload :DeployKey, 'qa/page/project/settings/deploy_key'
autoload :DeployKeys, 'qa/page/project/settings/deploy_keys'
end
end

View file

@ -2,7 +2,7 @@ module QA
module Page
module Project
module Settings
class DeployKey < Repository
class DeployKeys < Repository
def initialize
super

View file

@ -18,14 +18,14 @@ module QA
given(:deploy_key_data) { Runtime::User.ssh_key }
scenario 'user adds a deploy key' do
Page::Project::Settings::DeployKey.perform do |deploy_key|
Page::Project::Settings::DeployKeys.perform do |deploy_key|
deploy_key.fill_new_deploy_key_title(deploy_key_title)
deploy_key.fill_new_deploy_key_key(deploy_key_data)
deploy_key.add_key
end
Page::Project::Settings::DeployKey.perform do |deploy_key|
Page::Project::Settings::DeployKeys.perform do |deploy_key|
expect(deploy_key).to have_key_title(deploy_key_title)
end
end