fix windows test failures (#736)
This commit is contained in:
1 parent
a9a2429c98
commit
ee49501c6c
3 files changed
+5
-5
No files matched your search
@@ -62,7 +62,7 @@ module Google
|
||||
search_path ||= File.expand_path('.')
|
||||
if File.exists?(File.join(search_path, 'client_secrets.json'))
|
||||
filename = File.join(search_path, 'client_secrets.json')
|
||||
elsif search_path == '/' || search_path =~ /[a-zA-Z]:[\/\\]/
|
||||
elsif search_path == File.expand_path('..', search_path)
|
||||
raise ArgumentError,
|
||||
'No client_secrets.json filename supplied ' +
|
||||
'and/or could not be found in search path.'
|
||||
|
||||
Reference in new issue
Block a user