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.4.travis.414.4 spec/cli/help_spec.rb
travis-1.6.4.travis.413.4 spec/cli/help_spec.rb
travis-1.6.4.travis.410.4 spec/cli/help_spec.rb
travis-1.6.4.travis.411.4 spec/cli/help_spec.rb
travis-1.6.4.travis.406.4 spec/cli/help_spec.rb
travis-1.6.4.travis.405.4 spec/cli/help_spec.rb
travis-1.6.4.travis.395.4 spec/cli/help_spec.rb
travis-1.6.3 spec/cli/help_spec.rb
travis-1.6.3.travis.394.4 spec/cli/help_spec.rb
travis-1.6.3.travis.392.4 spec/cli/help_spec.rb
travis-1.6.3.travis.390.4 spec/cli/help_spec.rb
travis-1.6.3.travis.389.4 spec/cli/help_spec.rb
travis-1.6.3.travis.388.4 spec/cli/help_spec.rb
travis-1.6.3.travis.387.4 spec/cli/help_spec.rb
travis-1.6.3.travis.386.4 spec/cli/help_spec.rb
travis-1.6.3.travis.385.4 spec/cli/help_spec.rb
travis-1.6.3.travis.384.4 spec/cli/help_spec.rb
travis-1.6.3.travis.381.4 spec/cli/help_spec.rb
travis-1.6.3.travis.379.4 spec/cli/help_spec.rb
travis-1.6.3.travis.377.4 spec/cli/help_spec.rb