Sha256: 8ea55d18d5d55804300838f55fa9cadfd0009a320674375a5f2979db8317d794

Contents?: true

Size: 496 Bytes

Versions: 31

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

describe Aptible::CLI::Agent do
  let(:app) { Fabricate(:app) }
  let(:operation) { Fabricate(:operation, resource: app) }
  before { allow(subject).to receive(:ensure_app).and_return(app) }

  describe '#rebuild' do
    it 'rebuilds the app' do
      expect(app).to receive(:create_operation!)
        .with(type: 'rebuild').and_return(operation)
      expect(subject).to receive(:attach_to_operation_logs).with(operation)

      subject.send('rebuild')
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
aptible-cli-0.22.0 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.21.0 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.20.0 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.9 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.7 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.6 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.4 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.3 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.2 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.1 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.19.0 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.18.3 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.18.2 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.18.1 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.18.0 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.17.2 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.17.1 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.17.0 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.16.9 spec/aptible/cli/subcommands/rebuild_spec.rb
aptible-cli-0.16.8 spec/aptible/cli/subcommands/rebuild_spec.rb