summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-22 23:52:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-22 23:52:58 +0000
commitae0e98ce1d1c6835014800e0cb57ef17c1256cbb (patch)
treea5a7e24be30b039a7d10dfdcfefb620d175fcbaf /spec/ruby/library/win32ole/win32ole
parent04a353fe023a7086f0bb8b68d38d2f267dbc21da (diff)
Skip a cleanup if new_ole failed
On Appveyor, WIN32OLE sometimes fails due to a system shutdown, and `@ie` is not assigned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/win32ole/win32ole')
-rw-r--r--spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb b/spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb
index f625a4d925..8a510519f2 100644
--- a/spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb
@@ -9,7 +9,7 @@ platform_is :windows do
end
after :each do
- @ie.Quit
+ @ie.Quit if @ie
end
it "raises ArgumentError if argument is given" do