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