Commit 2078cb4e authored by Lin Jen-Shin's avatar Lin Jen-Shin

Rename DeployKey to DeployKeys

parent 7377b97c
...@@ -89,7 +89,7 @@ module QA ...@@ -89,7 +89,7 @@ module QA
module Settings module Settings
autoload :Repository, 'qa/page/project/settings/repository' 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
end end
......
...@@ -2,7 +2,7 @@ module QA ...@@ -2,7 +2,7 @@ module QA
module Page module Page
module Project module Project
module Settings module Settings
class DeployKey < Repository class DeployKeys < Repository
def initialize def initialize
super super
......
...@@ -18,14 +18,14 @@ module QA ...@@ -18,14 +18,14 @@ module QA
given(:deploy_key_data) { Runtime::User.ssh_key } given(:deploy_key_data) { Runtime::User.ssh_key }
scenario 'user adds a deploy key' do 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_title(deploy_key_title)
deploy_key.fill_new_deploy_key_key(deploy_key_data) deploy_key.fill_new_deploy_key_key(deploy_key_data)
deploy_key.add_key deploy_key.add_key
end 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) expect(deploy_key).to have_key_title(deploy_key_title)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment