blob: 77ca17bc82c8fae6f1203cfceb0907382dd23a93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'spec_helper'
describe AfterBranchDeleteService, services: true do
let(:project) { create(:project, :repository) }
let(:user) { create(:user) }
let(:service) { described_class.new(project, user) }
describe '#execute' do
it 'stops environments attached to branch' do
expect(service).to receive(:stop_environments)
service.execute('feature')
end
end
end
|