Eliminate a new 'raise_error' WARNING.

I have another outstanding PR to fix these; so avoid introducing
another one here.
This commit is contained in:
Todd Derr 2015-06-29 16:56:42 -04:00
parent 86de5fe13b
commit c04e91569d
1 changed files with 2 additions and 1 deletions

View File

@ -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