Sha256: 19bf0cc7b1ad9d888cf71cdeef25093913be45ffdf073cb841fb7bff0e624047
Contents?: true
Size: 963 Bytes
Versions: 12
Compression:
Stored size: 963 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_TOKEN=token travis whoami" do ENV['TRAVIS_TOKEN'] = 'token' run_cli('whoami').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
12 entries across 12 versions & 1 rubygems