Sha256: f56e488d28a88eed7bfdce338048bf1d350aa63a40e56d2d74bcae45130805ef

Contents?: true

Size: 646 Bytes

Versions: 6

Compression:

Stored size: 646 Bytes

Contents

require 'spec_helper'
require 'pec2'

describe Pec2::CLI do
  before do
    ENV['AWS_REGION'] = 'us-east-1'
  end

  it "should stdout sample" do
    output = capture_stdout do
      Pec2::CLI.start(['help'])
    end
    expect(output).not_to eq(nil)
  end

  it "include" do
    output = capture_stdout do
      Pec2::CLI.start(['help', 'run_command'])
    end
    expect(output).to include('--command')
    expect(output).to include('--sudo-password')
    expect(output).to include('--tag')
    expect(output).to include('--user')
    expect(output).to include('--parallel')
    expect(output).to include('--print')
  end

  after do
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pec2-0.7.1 spec/cli_spec.rb
pec2-0.7.0 spec/cli_spec.rb
pec2-0.6.3 spec/cli_spec.rb
pec2-0.6.2 spec/cli_spec.rb
pec2-0.6.1 spec/cli_spec.rb
pec2-0.6.0 spec/cli_spec.rb