(#33) Raise TokenError if no token provided

This commit is contained in:
Brian Cain 2016-09-24 11:14:02 -07:00
parent 8da1deaf6b
commit 579320e988
2 changed files with 10 additions and 2 deletions

View file

@ -51,6 +51,10 @@ describe Pooler do
expect{ Auth.delete_token(false, @vmpooler_url, "first.last", "password", @token) }.to raise_error(TokenError)
end
it "raises a token error if no token provided" do
expect{ Auth.delete_token(false, @vmpooler_url, "first.last", "password", nil) }.to raise_error(TokenError)
end
end
describe "#token_status" do
@ -74,5 +78,9 @@ describe Pooler do
expect{ Auth.token_status(false, @vmpooler_url, @token) }.to raise_error(TokenError)
end
it "raises a token error if no token provided" do
expect{ Auth.token_status(false, @vmpooler_url, nil) }.to raise_error(TokenError)
end
end
end