This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dickeyxxx
committed
Jun 1, 2015
1 parent
d2af693
commit 674a1c4
Showing
2 changed files
with
2 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,10 +77,7 @@ def token | |
# [email protected] | ||
# | ||
def whoami | ||
validate_arguments! | ||
|
||
display Heroku::Auth.user | ||
Heroku::JSPlugin.setup | ||
Heroku::JSPlugin.run('whoami', nil, ARGV[1..-1]) | ||
end | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,16 +23,4 @@ | |
STDOUT | ||
end | ||
end | ||
|
||
describe "auth:whoami" do | ||
it "displays the user's email address" do | ||
stderr, stdout = execute("auth:whoami") | ||
expect(stderr).to eq("") | ||
expect(stdout).to eq <<-STDOUT | ||
[email protected] | ||
STDOUT | ||
end | ||
|
||
end | ||
|
||
end |