Sha256: dabcda6cdcc865f14e92c7015078aaf73c927661a591053114bbbdfd34bfcf2e

Contents?: true

Size: 858 Bytes

Versions: 152

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 include("Usage: travis COMMAND")
  end

  example "travis --help" do
    run_cli('--help').should be_success
    stdout.should include("Usage: travis COMMAND")
  end

  example "travis -h" do
    run_cli('-h').should be_success
    stdout.should include("Usage: travis COMMAND")
  end

  example "travis -?" do
    run_cli('-?').should be_success
    stdout.should include("Usage: travis COMMAND")
  end

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

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

Version data entries

152 entries across 152 versions & 1 rubygems

Version Path
travis-1.6.11.travis.503.6 spec/cli/help_spec.rb
travis-1.6.10 spec/cli/help_spec.rb
travis-1.6.11.travis.502.6 spec/cli/help_spec.rb
travis-1.6.9 spec/cli/help_spec.rb
travis-1.6.9.travis.484.6 spec/cli/help_spec.rb
travis-1.6.9.travis.483.6 spec/cli/help_spec.rb
travis-1.6.9.travis.479.6 spec/cli/help_spec.rb
travis-1.6.9.travis.463.6 spec/cli/help_spec.rb
travis-1.6.9.travis.462.6 spec/cli/help_spec.rb
travis-1.6.9.travis.461.6 spec/cli/help_spec.rb
travis-1.6.9.travis.458.6 spec/cli/help_spec.rb
travis-1.6.8 spec/cli/help_spec.rb
travis-1.6.8.travis.457.6 spec/cli/help_spec.rb
travis-1.6.8.travis.456.6 spec/cli/help_spec.rb
travis-1.6.8.travis.455.6 spec/cli/help_spec.rb
travis-1.6.8.travis.454.6 spec/cli/help_spec.rb
travis-1.6.8.travis.453.6 spec/cli/help_spec.rb
travis-1.6.8.travis.452.6 spec/cli/help_spec.rb
travis-1.6.8.travis.451.6 spec/cli/help_spec.rb
travis-1.6.8.travis.450.6 spec/cli/help_spec.rb