From c04e91569dc6c8183934b7b3e7846a35fda86c3d Mon Sep 17 00:00:00 2001 From: Todd Derr Date: Mon, 29 Jun 2015 16:56:42 -0400 Subject: [PATCH] Eliminate a new 'raise_error' WARNING. I have another outstanding PR to fix these; so avoid introducing another one here. --- spec/googleauth/user_refresh_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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