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.5.6.travis.312.4 spec/cli/help_spec.rb
travis-1.5.6.travis.307.4 spec/cli/help_spec.rb
travis-1.5.6.travis.306.4 spec/cli/help_spec.rb
travis-1.5.6.travis.304.4 spec/cli/help_spec.rb
travis-1.5.6.travis.303.4 spec/cli/help_spec.rb
travis-1.5.6.travis.301.4 spec/cli/help_spec.rb
travis-1.5.6.travis.299.4 spec/cli/help_spec.rb
travis-1.5.6.travis.297.4 spec/cli/help_spec.rb
travis-1.5.6.travis.296.4 spec/cli/help_spec.rb
travis-1.5.5 spec/cli/help_spec.rb
travis-1.5.4 spec/cli/help_spec.rb
travis-1.5.3 spec/cli/help_spec.rb