fix windows test failures (#736)

This commit is contained in:
Graham Paye authored and GitHub committed 2018-11-26 13:22:07 -08:00
1 parent a9a2429c98
commit ee49501c6c
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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.'