Commit 56e78073 authored by Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason

Rename service to be more explicit

parent dddd2db7
......@@ -61,7 +61,7 @@ module Clusters
end
def validate_management_project_permissions(cluster)
Clusters::Management::ValidatePermissionsService.new(current_user)
Clusters::Management::ValidateManagementProjectPermissionsService.new(current_user)
.execute(cluster, params[:management_project_id])
end
end
......
......@@ -2,7 +2,7 @@
module Clusters
module Management
class ValidatePermissionsService
class ValidateManagementProjectPermissionsService
attr_reader :current_user
def initialize(user = nil)
......
......@@ -19,7 +19,7 @@ module Clusters
private
def validate_params(cluster)
::Clusters::Management::ValidatePermissionsService.new(current_user)
::Clusters::Management::ValidateManagementProjectPermissionsService.new(current_user)
.execute(cluster, params[:management_project_id])
end
end
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe Clusters::Management::ValidatePermissionsService do
describe Clusters::Management::ValidateManagementProjectPermissionsService do
describe '#execute' do
subject { described_class.new(user).execute(cluster, management_project_id) }
......
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