Sha256: 1969dee6a94566d0e7edb379c9841e7c68c560515e9091bad2fb55162621f6f9

Contents?: true

Size: 669 Bytes

Versions: 4

Compression:

Stored size: 669 Bytes

Contents

require 'spec_helper'

describe Elb::CLI do
  before(:all) do
    ensure_tmp
    @args = "--noop --instance-id #{instance_id} --mute"
  end

  describe "elb" do
    it "should restart" do
      out = execute("bin/elb restart #{@args}")
      expect(out).to include("Restarting server started")
      expect(out).to include("Restarting server completed")
    end

    it "should deregister" do
      out = execute("bin/elb deregister #{@args}")
      expect(out).to include("Deregistering server from ELB")
    end

    it "should register" do
      out = execute("bin/elb register #{@args}")
      expect(out).to include("Registering server with ELB")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elb-0.0.7 spec/lib/cli_spec.rb
elb-0.0.6 spec/lib/cli_spec.rb
elb-0.0.5 spec/lib/cli_spec.rb
elb-0.0.4 spec/lib/cli_spec.rb