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.8.travis.356.4 spec/cli/help_spec.rb
travis-1.5.7 spec/cli/help_spec.rb
travis-1.5.7.travis.345.4 spec/cli/help_spec.rb
travis-1.5.7.travis.341.4 spec/cli/help_spec.rb
travis-1.5.7.travis.338.4 spec/cli/help_spec.rb
travis-1.5.6 spec/cli/help_spec.rb
travis-1.5.6.travis.337.4 spec/cli/help_spec.rb
travis-1.5.6.travis.336.4 spec/cli/help_spec.rb
travis-1.5.6.travis.333.4 spec/cli/help_spec.rb
travis-1.5.6.travis.332.4 spec/cli/help_spec.rb
travis-1.5.6.travis.330.4 spec/cli/help_spec.rb
travis-1.5.6.travis.329.4 spec/cli/help_spec.rb
travis-1.5.6.travis.326.4 spec/cli/help_spec.rb
travis-1.5.6.travis.324.4 spec/cli/help_spec.rb
travis-1.5.6.travis.323.4 spec/cli/help_spec.rb
travis-1.5.6.travis.320.4 spec/cli/help_spec.rb
travis-1.5.6.travis.319.4 spec/cli/help_spec.rb
travis-1.5.6.travis.317.4 spec/cli/help_spec.rb
travis-1.5.6.travis.315.4 spec/cli/help_spec.rb
travis-1.5.6.travis.314.4 spec/cli/help_spec.rb