Sha256: 5ee42222ed093f5683732cbe55dcb307cfca1ab101bd1fac25831666b2787709
Contents?: true
Size: 927 Bytes
Versions: 4
Compression:
Stored size: 927 Bytes
Contents
require "spec_helper" require "opsicle" module Opsicle describe Client do subject { Client.new('derp') } let(:aws_client) { double } let(:config) { double } before do ow_stub = double allow(config).to receive(:opsworks_config).and_return({ stack_id: 'stack', app_id: 'app' }) allow(ow_stub).to receive(:client).and_return(aws_client) allow(Config).to receive(:new).and_return(config) allow(AWS::OpsWorks).to receive(:new).and_return(ow_stub) end context "#run_command" do it "calls out to the aws client with all the config options" do expect(config).to receive(:configure_aws!) expect(aws_client).to receive(:create_deployment).with( hash_including( command: { name: 'deploy' }, stack_id: 'stack', app_id: 'app' ) ) subject.run_command('deploy') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opsicle-0.4.2 | spec/opsicle/client_spec.rb |
opsicle-0.4.0 | spec/opsicle/client_spec.rb |
opsicle-0.3.1 | spec/opsicle/client_spec.rb |
opsicle-0.3.0 | spec/opsicle/client_spec.rb |