Improve name of service that stops CI environments
This commit is contained in:
parent
d945300b8e
commit
990765edf3
|
@ -16,7 +16,7 @@ class AfterBranchDeleteService < BaseService
|
|||
private
|
||||
|
||||
def stop_environments
|
||||
Ci::StopEnvironmentService
|
||||
Ci::StopEnvironmentsService
|
||||
.new(project, current_user)
|
||||
.execute(branch_name)
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Ci
|
||||
class StopEnvironmentService < BaseService
|
||||
class StopEnvironmentsService < BaseService
|
||||
attr_reader :ref
|
||||
|
||||
def execute(branch_name)
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Ci::StopEnvironmentService, services: true do
|
||||
describe Ci::StopEnvironmentsService, services: true do
|
||||
let(:project) { create(:project, :private) }
|
||||
let(:user) { create(:user) }
|
||||
|
Loading…
Reference in New Issue