Sha256: 6a45bec7e3239c3e12922d796f66fc36e3d7c05944af7d5bec73b7f0c61934c9
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
require "spec_helper" require "opsicle" require 'gli' require "opsicle/user_profile" module Opsicle describe CloneableStack do before do @stack = double('stack', :vpc_id => 'vpc-123456') @stacks = double('stacks', :stacks => [@stack]) @opsworks = double('opsworks', :describe_stacks => @stacks) end context "#get_stack" do it "should gather opsworks instances for that layer" do stack = CloneableStack.new(12345, @opsworks) expect(@opsworks).to receive(:describe_stacks).and_return(@stacks) expect(@stacks).to receive(:stacks) stack.get_stack end end end end
Version data entries
5 entries across 5 versions & 1 rubygems