Sha256: 6e4d9108bee6a659d72b82409c3f79ec4fa01d3940ec6f9521e83e905b44bc98

Contents?: true

Size: 858 Bytes

Versions: 23

Compression:

Stored size: 858 Bytes

Contents

require 'spec_helper'

describe Travis::CLI::Help do
  example "travis help" do
    run_cli('help').should be_success
    stdout.should start_with("Usage: #$0 COMMAND")
  end

  example "travis --help" do
    run_cli('--help').should be_success
    stdout.should start_with("Usage: #$0 COMMAND")
  end

  example "travis -h" do
    run_cli('-h').should be_success
    stdout.should start_with("Usage: #$0 COMMAND")
  end

  example "travis -?" do
    run_cli('-?').should be_success
    stdout.should start_with("Usage: #$0 COMMAND")
  end

  example "travis help endpoint" do
    run_cli('help', 'endpoint').should be_success
    stdout.should start_with("Usage: #$0 endpoint [options]")
  end

  example "travis endpoint --help" do
    run_cli('endpoint', '--help').should be_success
    stdout.should start_with("Usage: #$0 endpoint [options]")
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
travis-1.5.2 spec/cli/help_spec.rb
travis-1.5.1 spec/cli/help_spec.rb
travis-1.5.0 spec/cli/help_spec.rb
travis-1.4.0 spec/cli/help_spec.rb
travis-1.3.1 spec/cli/help_spec.rb
travis-1.3.0 spec/cli/help_spec.rb
travis-1.2.8 spec/cli/help_spec.rb
travis-1.2.7 spec/cli/help_spec.rb
travis-1.2.6 spec/cli/help_spec.rb
travis-1.2.5 spec/cli/help_spec.rb
travis-1.2.4 spec/cli/help_spec.rb
travis-1.2.3 spec/cli/help_spec.rb
travis-1.2.2 spec/cli/help_spec.rb
travis-1.2.1 spec/cli/help_spec.rb
travis-1.2.0 spec/cli/help_spec.rb
travis-1.1.3 spec/cli/help_spec.rb
travis-1.1.2 spec/cli/help_spec.rb
travis-1.1.1 spec/cli/help_spec.rb
travis-1.1.0 spec/cli/help_spec.rb
travis-1.0.3 spec/cli/help_spec.rb