spec/cli/whoami_spec.rb in travis-1.5.1 vs spec/cli/whoami_spec.rb in travis-1.5.2
- old
+ new
@@ -17,9 +17,16 @@
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