Renamed the redirect_request concern to repository_settings_redirect
Also fixed naming of a test in the deploy_keys_presenter
This commit is contained in:
parent
b17843a954
commit
55b07533a9
4 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
module RedirectRequest
|
||||
module RepositorySettingsRedirect
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
def redirect_to_repository_settings(project)
|
|
@ -1,5 +1,5 @@
|
|||
class Projects::DeployKeysController < Projects::ApplicationController
|
||||
include RedirectRequest
|
||||
include RepositorySettingsRedirect
|
||||
respond_to :html
|
||||
|
||||
# Authorize
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class Projects::ProtectedBranchesController < Projects::ApplicationController
|
||||
include RedirectRequest
|
||||
include RepositorySettingsRedirect
|
||||
# Authorize
|
||||
before_action :require_non_empty_project
|
||||
before_action :authorize_admin_project!
|
||||
|
|
|
@ -44,7 +44,7 @@ describe Projects::Settings::DeployKeysPresenter do
|
|||
expect(presenter.available_project_keys).to be_empty
|
||||
end
|
||||
|
||||
it 'returns if any available_project_keys are enabled' do
|
||||
it 'returns false if any available_project_keys are enabled' do
|
||||
expect(presenter.any_available_project_keys_enabled?).to eq(false)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue