Commit 990765ed authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve name of service that stops CI environments

parent d945300b
...@@ -16,7 +16,7 @@ class AfterBranchDeleteService < BaseService ...@@ -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
......
module Ci module Ci
class StopEnvironmentService < BaseService class StopEnvironmentsService < BaseService
attr_reader :ref attr_reader :ref
def execute(branch_name) def execute(branch_name)
......
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) }
......
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