after_branch_delete_service_spec.rb 377 Bytes
Newer Older
1 2
require 'spec_helper'

3
describe AfterBranchDeleteService do
4
  let(:project) { create(:project, :repository) }
5 6 7 8 9 10 11 12 13 14 15
  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