Improve name of service that stops CI environments

This commit is contained in:
Grzegorz Bizon 2016-11-14 13:57:09 +01:00
parent d945300b8e
commit 990765edf3
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class AfterBranchDeleteService < BaseService
private
def stop_environments
Ci::StopEnvironmentService
Ci::StopEnvironmentsService
.new(project, current_user)
.execute(branch_name)
end

View File

@ -1,5 +1,5 @@
module Ci
class StopEnvironmentService < BaseService
class StopEnvironmentsService < BaseService
attr_reader :ref
def execute(branch_name)

View File

@ -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) }