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