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
|
private
|
||||||
|
|
||||||
def stop_environments
|
def stop_environments
|
||||||
Ci::StopEnvironmentService
|
Ci::StopEnvironmentsService
|
||||||
.new(project, current_user)
|
.new(project, current_user)
|
||||||
.execute(branch_name)
|
.execute(branch_name)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module Ci
|
module Ci
|
||||||
class StopEnvironmentService < BaseService
|
class StopEnvironmentsService < BaseService
|
||||||
attr_reader :ref
|
attr_reader :ref
|
||||||
|
|
||||||
def execute(branch_name)
|
def execute(branch_name)
|
|
@ -1,6 +1,6 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Ci::StopEnvironmentService, services: true do
|
describe Ci::StopEnvironmentsService, services: true do
|
||||||
let(:project) { create(:project, :private) }
|
let(:project) { create(:project, :private) }
|
||||||
let(:user) { create(:user) }
|
let(:user) { create(:user) }
|
||||||
|
|
Loading…
Reference in New Issue