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.3.travis.376.4 spec/cli/help_spec.rb
travis-1.6.3.travis.374.4 spec/cli/help_spec.rb
travis-1.6.3.travis.373.4 spec/cli/help_spec.rb
travis-1.6.2.travis.371.4 spec/cli/help_spec.rb
travis-1.6.2 spec/cli/help_spec.rb
travis-1.6.2.travis.370.4 spec/cli/help_spec.rb
travis-1.6.2.travis.369.4 spec/cli/help_spec.rb
travis-1.6.2.travis.368.4 spec/cli/help_spec.rb
travis-1.6.2.travis.367.4 spec/cli/help_spec.rb
travis-1.6.2.travis.366.4 spec/cli/help_spec.rb
travis-1.6.2.travis.365.4 spec/cli/help_spec.rb
travis-1.6.2.travis.364.4 spec/cli/help_spec.rb
travis-1.6.1 spec/cli/help_spec.rb
travis-1.6.1.travis.363.4 spec/cli/help_spec.rb
travis-1.6.0 spec/cli/help_spec.rb
travis-1.5.9.travis.362.4 spec/cli/help_spec.rb
travis-1.5.9.travis.361.4 spec/cli/help_spec.rb
travis-1.5.9.travis.360.4 spec/cli/help_spec.rb
travis-1.5.9.travis.358.4 spec/cli/help_spec.rb
travis-1.5.8 spec/cli/help_spec.rb