Sha256: 3236c245e3f4b4fd290668a38ce4c35ad7ab77721ec6f8723a4ee9d44142430a

Contents?: true

Size: 402 Bytes

Versions: 4

Compression:

Stored size: 402 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 error classes" do
    EY::CLI::EnvironmentError.should be
    EY::CLI::BranchMismatch.should be
    EY::CLI::DeployArgumentError.should be
  end

end # EY::CLI

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
engineyard-0.2.11 spec/engineyard/cli_spec.rb
engineyard-0.2.10 spec/engineyard/cli_spec.rb
engineyard-0.2.9 spec/engineyard/cli_spec.rb
engineyard-0.2.7 spec/engineyard/cli_spec.rb