adds specs for storage
changes expectation in write_credentials
This commit is contained in:
1 parent
e6858bd292
commit
31fac0a6f5
2 files changed
+49
-11
No files matched your search
@@ -48,7 +48,7 @@ module Google
|
||||
# already associated with this instance will be written.
|
||||
def write_credentials(authorization=nil)
|
||||
@authorization = authorization if authorization
|
||||
if @authorization.refresh_token
|
||||
if @authorization.respond_to?(:refresh_token) && @authorization.refresh_token
|
||||
store.write_credentials(credentials_hash)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user