Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
use v4 for auth:whoami
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyxxx committed Jun 1, 2015
1 parent d2af693 commit 674a1c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
7 changes: 2 additions & 5 deletions lib/heroku/command/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

12 changes: 0 additions & 12 deletions spec/heroku/command/auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 674a1c4

Please sign in to comment.