lib/redbooth-ruby/request/validator.rb in redbooth-ruby-0.0.5 vs lib/redbooth-ruby/request/validator.rb in redbooth-ruby-0.1.0
- old
+ new
@@ -45,12 +45,12 @@
# Checks the authetication header to ensure wich is the best error to throw
#
def verify_authentication_header
case raw_response.headers['WWW-Authenticate']
when /error\=\"invalid_token\".*expired/
- fail OauhtTokenExpired
+ fail OauthTokenExpired
when /error\=\"invalid_token\".*revoked/
- fail OauhtTokenRevoked
+ fail OauthTokenRevoked
end
end
# Validates the body data returned in the response in case there is
# an embed error it will fail with the dessired error and message