summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole_event
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-07-27 12:40:09 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-07-27 12:40:09 +0200
commit5c276e1cc91c5ab2a41fbf7827af2fed914a2bc0 (patch)
tree05b5c68c8b2a00224d4646ea3b26ce3877efaadd /spec/ruby/library/win32ole/win32ole_event
parenta06301b103371b0b7da8eaca26ba744961769f99 (diff)
Update to ruby/spec@875a09e
Diffstat (limited to 'spec/ruby/library/win32ole/win32ole_event')
-rw-r--r--spec/ruby/library/win32ole/win32ole_event/new_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/win32ole/win32ole_event/new_spec.rb b/spec/ruby/library/win32ole/win32ole_event/new_spec.rb
index 4ce11a716b..a1a1612393 100644
--- a/spec/ruby/library/win32ole/win32ole_event/new_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_event/new_spec.rb
@@ -12,16 +12,16 @@ platform_is :windows do
end
it "raises TypeError given invalid argument" do
- lambda { WIN32OLE_EVENT.new "A" }.should raise_error TypeError
+ -> { WIN32OLE_EVENT.new "A" }.should raise_error TypeError
end
it "raises RuntimeError if event does not exist" do
- lambda { WIN32OLE_EVENT.new(@xml_dom, 'A') }.should raise_error RuntimeError
+ -> { WIN32OLE_EVENT.new(@xml_dom, 'A') }.should raise_error RuntimeError
end
it "raises RuntimeError if OLE object has no events" do
dict = WIN32OLESpecs.new_ole('Scripting.Dictionary')
- lambda { WIN32OLE_EVENT.new(dict) }.should raise_error RuntimeError
+ -> { WIN32OLE_EVENT.new(dict) }.should raise_error RuntimeError
end
it "creates WIN32OLE_EVENT object" do