Sha256: 4e11b1545a80fea010fcc1bc642d8074a5810880600c3d13cd7046a5873ecfeb

Contents?: true

Size: 762 Bytes

Versions: 20

Compression:

Stored size: 762 Bytes

Contents

require 'spec_helper'
require 'engineyard/cli'

describe EY::CLI do

  it "sets up EY.ui" do
    EY.ui.should be_an(EY::UI)
    capture_stdout do
      EY::CLI.start(["help"])
    end
    EY.ui.should be_an(EY::CLI::UI)
  end

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

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

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

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

  it "provides error classes" do
    EY::EnvironmentError.should be
    EY::BranchMismatchError.should be
    EY::DeployArgumentError.should be
  end

end # EY::CLI

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
engineyard-1.3.14 spec/engineyard/cli_spec.rb
engineyard-1.3.13 spec/engineyard/cli_spec.rb
engineyard-1.3.12 spec/engineyard/cli_spec.rb
engineyard-1.3.11 spec/engineyard/cli_spec.rb
engineyard-1.3.10 spec/engineyard/cli_spec.rb
engineyard-1.3.7 spec/engineyard/cli_spec.rb
engineyard-1.3.4 spec/engineyard/cli_spec.rb
engineyard-1.3.3 spec/engineyard/cli_spec.rb
engineyard-1.3.2 spec/engineyard/cli_spec.rb
engineyard-1.3.1 spec/engineyard/cli_spec.rb
engineyard-1.3.0 spec/engineyard/cli_spec.rb
engineyard-1.2.4 spec/engineyard/cli_spec.rb
engineyard-1.2.3 spec/engineyard/cli_spec.rb
engineyard-1.2.2 spec/engineyard/cli_spec.rb
engineyard-1.2.1 spec/engineyard/cli_spec.rb
engineyard-1.2.0 spec/engineyard/cli_spec.rb
engineyard-1.1.3 spec/engineyard/cli_spec.rb
engineyard-1.1.2 spec/engineyard/cli_spec.rb
engineyard-1.1.1 spec/engineyard/cli_spec.rb
engineyard-1.1.0 spec/engineyard/cli_spec.rb