Sha256: 78767b5efd7ff92e6d8038f9821d12c86d3f17b5b4fcb49cbd609683066d99b8
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 Bytes
Contents
describe Balancer::CLI do before(:all) do @args = "--noop" end describe "balancer" do it "create" do out = execute("exe/balancer create my-elb #{@args}") expect(out).to include("Creating load balancer") end it "destroy" do out = execute("exe/balancer destroy my-elb #{@args}") expect(out).to include("Destroying ELB") end commands = { "crea" => "create", "create" => "name", "dest" => "destroy", } commands.each do |command, expected_word| it "completion #{command}" do out = execute("exe/balancer completion #{command}") expect(out).to include(expected_word) # only checking for one word for simplicity end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balancer-0.2.0 | spec/lib/cli_spec.rb |