diff --git a/spec/googleauth/user_refresh_spec.rb b/spec/googleauth/user_refresh_spec.rb index f350ea1..4462a6e 100644 --- a/spec/googleauth/user_refresh_spec.rb +++ b/spec/googleauth/user_refresh_spec.rb @@ -208,7 +208,8 @@ describe Google::Auth::UserRefreshCredentials do Dir.mktmpdir do |dir| FileUtils.mkdir_p(File.dirname(@path)) File.write(@path, cred_json_text(missing)) - expect { @clz.from_system_default_path(@scope) }.to raise_error + expect { @clz.from_system_default_path(@scope) }. + to raise_error RuntimeError File.delete(@path) end end