Sha256: 20113dde6d8aaa0c8eb4ecf4557a36030888ed1422805e3723f20b49e6f5ed83

Contents?: true

Size: 551 Bytes

Versions: 10

Compression:

Stored size: 551 Bytes

Contents

require 'spec_helper'
require 'engineyard/cli'

describe EY::CLI do

  it "provides help" do
    out = capture_stdout do
      EY::CLI.start(["help"])
    end

    expect(out).to include("ey deploy")
    expect(out).to include("ey ssh")
    expect(out).to include("ey web enable")
  end

  it "delegates help" do
    out = capture_stdout do
      EY::CLI.start(%w[help web enable])
    end

    expect(out).to match(/remove the maintenance page/i)
  end

  it "provides error classes" do
    expect(EY::DeployArgumentError).to be
  end

end # EY::CLI

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
crazy-yard-3.2.2 spec/engineyard/cli_spec.rb
engineyard-3.2.5 spec/engineyard/cli_spec.rb
engineyard-3.2.4 spec/engineyard/cli_spec.rb
engineyard-3.2.3 spec/engineyard/cli_spec.rb
engineyard-4.0.0.pre3 spec/engineyard/cli_spec.rb
engineyard-4.0.0.pre2 spec/engineyard/cli_spec.rb
engineyard-4.0.0.pre1 spec/engineyard/cli_spec.rb
engineyard-3.2.1 spec/engineyard/cli_spec.rb
engineyard-3.2.0 spec/engineyard/cli_spec.rb
engineyard-3.1.3 spec/engineyard/cli_spec.rb