debian-mirror-gitlab/spec/services/after_branch_delete_service_spec.rb
2017-09-10 17:25:29 +05:30

15 lines
377 B
Ruby

require 'spec_helper'
describe AfterBranchDeleteService 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