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:
Jose Ivan Vargas 2017-03-03 11:41:15 -06:00
parent b17843a954
commit 55b07533a9
4 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
module RedirectRequest
module RepositorySettingsRedirect
extend ActiveSupport::Concern
def redirect_to_repository_settings(project)

View file

@ -1,5 +1,5 @@
class Projects::DeployKeysController < Projects::ApplicationController
include RedirectRequest
include RepositorySettingsRedirect
respond_to :html
# Authorize

View file

@ -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!

View file

@ -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