summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole
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
parenta06301b103371b0b7da8eaca26ba744961769f99 (diff)
Update to ruby/spec@875a09e
Diffstat (limited to 'spec/ruby/library/win32ole/win32ole')
-rw-r--r--spec/ruby/library/win32ole/win32ole/_invoke_spec.rb6
-rw-r--r--spec/ruby/library/win32ole/win32ole/connect_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole/locale_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole/new_spec.rb4
-rw-r--r--spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole/ole_methods_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole/ole_obj_help_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole/ole_put_methods_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole/shared/ole_method.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole/shared/setproperty.rb2
10 files changed, 13 insertions, 13 deletions
diff --git a/spec/ruby/library/win32ole/win32ole/_invoke_spec.rb b/spec/ruby/library/win32ole/win32ole/_invoke_spec.rb
index 9809f89e7c..91f5091d24 100644
--- a/spec/ruby/library/win32ole/win32ole/_invoke_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/_invoke_spec.rb
@@ -7,9 +7,9 @@ platform_is :windows do
end
it "raises ArgumentError if insufficient number of arguments are given" do
- lambda { @shell._invoke() }.should raise_error ArgumentError
- lambda { @shell._invoke(0) }.should raise_error ArgumentError
- lambda { @shell._invoke(0, []) }.should raise_error ArgumentError
+ -> { @shell._invoke() }.should raise_error ArgumentError
+ -> { @shell._invoke(0) }.should raise_error ArgumentError
+ -> { @shell._invoke(0, []) }.should raise_error ArgumentError
end
it "dispatches the method bound to a specific ID" do
diff --git a/spec/ruby/library/win32ole/win32ole/connect_spec.rb b/spec/ruby/library/win32ole/win32ole/connect_spec.rb
index 590ef7688c..72dceb1572 100644
--- a/spec/ruby/library/win32ole/win32ole/connect_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/connect_spec.rb
@@ -8,7 +8,7 @@ platform_is :windows do
end
it "raises TypeError when given invalid argument" do
- lambda { WIN32OLE.connect 1 }.should raise_error TypeError
+ -> { WIN32OLE.connect 1 }.should raise_error TypeError
end
end
diff --git a/spec/ruby/library/win32ole/win32ole/locale_spec.rb b/spec/ruby/library/win32ole/win32ole/locale_spec.rb
index a0376ce123..75a82ddd7f 100644
--- a/spec/ruby/library/win32ole/win32ole/locale_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/locale_spec.rb
@@ -19,7 +19,7 @@ platform_is :windows do
WIN32OLE.locale.should == 1041
WIN32OLE.locale = WIN32OLE::LOCALE_SYSTEM_DEFAULT
- lambda { WIN32OLE.locale = 111 }.should raise_error WIN32OLERuntimeError
+ -> { WIN32OLE.locale = 111 }.should raise_error WIN32OLERuntimeError
WIN32OLE.locale.should == WIN32OLE::LOCALE_SYSTEM_DEFAULT
ensure
WIN32OLE.locale.should == WIN32OLE::LOCALE_SYSTEM_DEFAULT
diff --git a/spec/ruby/library/win32ole/win32ole/new_spec.rb b/spec/ruby/library/win32ole/win32ole/new_spec.rb
index d1c3e02593..6b717195f1 100644
--- a/spec/ruby/library/win32ole/win32ole/new_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/new_spec.rb
@@ -13,11 +13,11 @@ platform_is :windows do
end
it "raises TypeError if argument cannot be converted to String" do
- lambda { WIN32OLESpecs.new_ole(42) }.should raise_error( TypeError )
+ -> { WIN32OLESpecs.new_ole(42) }.should raise_error( TypeError )
end
it "raises WIN32OLERuntimeError if invalid string is given" do
- lambda { WIN32OLE.new('foo') }.should raise_error( WIN32OLERuntimeError )
+ -> { WIN32OLE.new('foo') }.should raise_error( WIN32OLERuntimeError )
end
end
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 5488c4fd29..75748182fe 100644
--- a/spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/ole_func_methods_spec.rb
@@ -7,7 +7,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @dict.ole_func_methods(1) }.should raise_error ArgumentError
+ -> { @dict.ole_func_methods(1) }.should raise_error ArgumentError
end
it "returns an array of WIN32OLE_METHODs" do
diff --git a/spec/ruby/library/win32ole/win32ole/ole_methods_spec.rb b/spec/ruby/library/win32ole/win32ole/ole_methods_spec.rb
index b2baac265e..5ac9ae9cfa 100644
--- a/spec/ruby/library/win32ole/win32ole/ole_methods_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/ole_methods_spec.rb
@@ -7,7 +7,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @dict.ole_methods(1) }.should raise_error ArgumentError
+ -> { @dict.ole_methods(1) }.should raise_error ArgumentError
end
it "returns an array of WIN32OLE_METHODs" do
diff --git a/spec/ruby/library/win32ole/win32ole/ole_obj_help_spec.rb b/spec/ruby/library/win32ole/win32ole/ole_obj_help_spec.rb
index 2d31aac9eb..ef8944ee39 100644
--- a/spec/ruby/library/win32ole/win32ole/ole_obj_help_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/ole_obj_help_spec.rb
@@ -8,7 +8,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @dict.ole_obj_help(1) }.should raise_error ArgumentError
+ -> { @dict.ole_obj_help(1) }.should raise_error ArgumentError
end
it "returns an instance of WIN32OLE_TYPE" do
diff --git a/spec/ruby/library/win32ole/win32ole/ole_put_methods_spec.rb b/spec/ruby/library/win32ole/win32ole/ole_put_methods_spec.rb
index 45af41c6c2..727291e9f0 100644
--- a/spec/ruby/library/win32ole/win32ole/ole_put_methods_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole/ole_put_methods_spec.rb
@@ -7,7 +7,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @dict.ole_put_methods(1) }.should raise_error ArgumentError
+ -> { @dict.ole_put_methods(1) }.should raise_error ArgumentError
end
it "returns an array of WIN32OLE_METHODs" do
diff --git a/spec/ruby/library/win32ole/win32ole/shared/ole_method.rb b/spec/ruby/library/win32ole/win32ole/shared/ole_method.rb
index 26566a0b14..f1fd8713a4 100644
--- a/spec/ruby/library/win32ole/win32ole/shared/ole_method.rb
+++ b/spec/ruby/library/win32ole/win32ole/shared/ole_method.rb
@@ -7,7 +7,7 @@ platform_is :windows do
end
it "raises ArgumentError if no argument is given" do
- lambda { @dict.send(@method) }.should raise_error ArgumentError
+ -> { @dict.send(@method) }.should raise_error ArgumentError
end
it "returns the WIN32OLE_METHOD 'Add' if given 'Add'" do
diff --git a/spec/ruby/library/win32ole/win32ole/shared/setproperty.rb b/spec/ruby/library/win32ole/win32ole/shared/setproperty.rb
index b850d21933..b9267aef71 100644
--- a/spec/ruby/library/win32ole/win32ole/shared/setproperty.rb
+++ b/spec/ruby/library/win32ole/win32ole/shared/setproperty.rb
@@ -7,7 +7,7 @@ platform_is :windows do
end
it "raises ArgumentError if no argument is given" do
- lambda { @dict.send(@method) }.should raise_error ArgumentError
+ -> { @dict.send(@method) }.should raise_error ArgumentError
end
it "sets key to newkey and returns nil" do