BigW Consortium Gitlab

Commit 990765ed by Grzegorz Bizon

Improve name of service that stops CI environments

parent d945300b
......@@ -16,7 +16,7 @@ class AfterBranchDeleteService < BaseService
private
def stop_environments
Ci::StopEnvironmentService
Ci::StopEnvironmentsService
.new(project, current_user)
.execute(branch_name)
end
......
module Ci
class StopEnvironmentService < BaseService
class StopEnvironmentsService < BaseService
attr_reader :ref
def execute(branch_name)
......
require 'spec_helper'
describe Ci::StopEnvironmentService, services: true do
describe Ci::StopEnvironmentsService, services: true do
let(:project) { create(:project, :private) }
let(:user) { create(:user) }
......
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