Sha256: 9b5696bcec53a35d1e47e6829a8327964f04b4438695d88b0dfa4f18d4805472

Contents?: true

Size: 775 Bytes

Versions: 20

Compression:

Stored size: 775 Bytes

Contents

require 'spec_helper'

describe Travis::CLI::Whoami do
  example "travis whoami" do
    run_cli('whoami').should_not be_success
    stdout.should be_empty
    stderr.should be == "not logged in, please run #$0 login\n"
  end

  example "travis whoami --pro" do
    run_cli('whoami', '--pro').should_not be_success
    stdout.should be_empty
    stderr.should be == "not logged in, please run #$0 login --pro\n"
  end

  example "travis whoami -t token" do
    run_cli('whoami', '-t', 'token').should be_success
    stdout.should be == "rkh\n"
    stderr.should be_empty
  end

  example "travis whoami -t token -i" do
    run_cli('whoami', '-t', 'token', '-i').should be_success
    stdout.should be == "You are rkh (Konstantin Haase)\n"
    stderr.should be_empty
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
travis-1.5.1 spec/cli/whoami_spec.rb
travis-1.5.0 spec/cli/whoami_spec.rb
travis-1.4.0 spec/cli/whoami_spec.rb
travis-1.3.1 spec/cli/whoami_spec.rb
travis-1.3.0 spec/cli/whoami_spec.rb
travis-1.2.8 spec/cli/whoami_spec.rb
travis-1.2.7 spec/cli/whoami_spec.rb
travis-1.2.6 spec/cli/whoami_spec.rb
travis-1.2.5 spec/cli/whoami_spec.rb
travis-1.2.4 spec/cli/whoami_spec.rb
travis-1.2.3 spec/cli/whoami_spec.rb
travis-1.2.2 spec/cli/whoami_spec.rb
travis-1.2.1 spec/cli/whoami_spec.rb
travis-1.2.0 spec/cli/whoami_spec.rb
travis-1.1.3 spec/cli/whoami_spec.rb
travis-1.1.2 spec/cli/whoami_spec.rb
travis-1.1.1 spec/cli/whoami_spec.rb
travis-1.1.0 spec/cli/whoami_spec.rb
travis-1.0.3 spec/cli/whoami_spec.rb
travis-1.0.2 spec/cli/whoami_spec.rb