Sha256: fb74e7d85ec1099f0fc219f2b36d97e34bc58c4851bd247d8a7f776f438b3953
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
Contents
require 'spec_helper' describe Elb::Deploy do before(:all) do AWS.stub! ensure_tmp @options = { :instance_id => instance_id, :noop => true, :restart_command => "touch tmp/restart.txt" } Elb::UI.mute = true end let(:lb) { double("Aws::Elb") } let(:deploy) { deploy = Elb::Deploy.new(@options) allow(deploy.asg).to receive(:load_balancers).and_return([lb]) allow(deploy).to receive(:wait).and_return(true) deploy } describe "deploy" do it "should run" do expect(deploy).to receive(:deregister) expect(deploy).to receive(:restart) expect(deploy).to receive(:warm) expect(deploy).to receive(:register) deploy.run end it "should have asg" do expect(deploy.asg).to_not be_nil end it "should have elb" do expect(deploy.elb).to_not be_nil end it "should deregister" do expect(deploy.deregister).to be true end it "should register" do expect(deploy.register).to be true end it "should restart" do expect(deploy.restart).to be true end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
elb-0.0.7 | spec/lib/deploy_spec.rb |
elb-0.0.6 | spec/lib/deploy_spec.rb |
elb-0.0.5 | spec/lib/deploy_spec.rb |
elb-0.0.4 | spec/lib/deploy_spec.rb |