summaryrefslogtreecommitdiff
path: root/spec/services/deployments/update_service_spec.rb
blob: a923099b82cbab3b8f5c22d8a5498f88d7b76d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

describe Deployments::UpdateService do
  let(:deploy) { create(:deployment, :running) }
  let(:service) { described_class.new(deploy, status: 'success') }

  describe '#execute' do
    it 'updates the status of a deployment' do
      expect(service.execute).to eq(true)
      expect(deploy.status).to eq('success')
    end
  end
end