summaryrefslogtreecommitdiff
path: root/spec/ruby/library/win32ole/win32ole_param
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_param
parenta06301b103371b0b7da8eaca26ba744961769f99 (diff)
Update to ruby/spec@875a09e
Diffstat (limited to 'spec/ruby/library/win32ole/win32ole_param')
-rw-r--r--spec/ruby/library/win32ole/win32ole_param/default_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole_param/input_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole_param/ole_type_detail_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole_param/ole_type_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole_param/optional_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole_param/retval_spec.rb2
-rw-r--r--spec/ruby/library/win32ole/win32ole_param/shared/name.rb2
7 files changed, 7 insertions, 7 deletions
diff --git a/spec/ruby/library/win32ole/win32ole_param/default_spec.rb b/spec/ruby/library/win32ole/win32ole_param/default_spec.rb
index 7a1337ec7c..af08c84782 100644
--- a/spec/ruby/library/win32ole/win32ole_param/default_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_param/default_spec.rb
@@ -13,7 +13,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @params[0].default(1) }.should raise_error ArgumentError
+ -> { @params[0].default(1) }.should raise_error ArgumentError
end
it "returns nil for each of WIN32OLE_PARAM for Shell's 'BrowseForFolder' method" do
diff --git a/spec/ruby/library/win32ole/win32ole_param/input_spec.rb b/spec/ruby/library/win32ole/win32ole_param/input_spec.rb
index bdf4bccc79..a0022fef13 100644
--- a/spec/ruby/library/win32ole/win32ole_param/input_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_param/input_spec.rb
@@ -9,7 +9,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @param_overwritefiles.input?(1) }.should raise_error ArgumentError
+ -> { @param_overwritefiles.input?(1) }.should raise_error ArgumentError
end
it "returns true for 3rd parameter of FileSystemObject's 'CopyFile' method" do
diff --git a/spec/ruby/library/win32ole/win32ole_param/ole_type_detail_spec.rb b/spec/ruby/library/win32ole/win32ole_param/ole_type_detail_spec.rb
index 3ba51c02f1..e683d1c16e 100644
--- a/spec/ruby/library/win32ole/win32ole_param/ole_type_detail_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_param/ole_type_detail_spec.rb
@@ -9,7 +9,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @param_overwritefiles.ole_type_detail(1) }.should raise_error ArgumentError
+ -> { @param_overwritefiles.ole_type_detail(1) }.should raise_error ArgumentError
end
it "returns ['BOOL'] for 3rd parameter of FileSystemObject's 'CopyFile' method" do
diff --git a/spec/ruby/library/win32ole/win32ole_param/ole_type_spec.rb b/spec/ruby/library/win32ole/win32ole_param/ole_type_spec.rb
index 52bee2c9b8..b9a3639c3e 100644
--- a/spec/ruby/library/win32ole/win32ole_param/ole_type_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_param/ole_type_spec.rb
@@ -9,7 +9,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @param_overwritefiles.ole_type(1) }.should raise_error ArgumentError
+ -> { @param_overwritefiles.ole_type(1) }.should raise_error ArgumentError
end
it "returns 'BOOL' for 3rd parameter of FileSystemObject's 'CopyFile' method" do
diff --git a/spec/ruby/library/win32ole/win32ole_param/optional_spec.rb b/spec/ruby/library/win32ole/win32ole_param/optional_spec.rb
index 2476df8641..3fb9dc1867 100644
--- a/spec/ruby/library/win32ole/win32ole_param/optional_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_param/optional_spec.rb
@@ -9,7 +9,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @param_overwritefiles.optional?(1) }.should raise_error ArgumentError
+ -> { @param_overwritefiles.optional?(1) }.should raise_error ArgumentError
end
it "returns true for 3rd parameter of FileSystemObject's 'CopyFile' method" do
diff --git a/spec/ruby/library/win32ole/win32ole_param/retval_spec.rb b/spec/ruby/library/win32ole/win32ole_param/retval_spec.rb
index 90946c0774..f5546e79e5 100644
--- a/spec/ruby/library/win32ole/win32ole_param/retval_spec.rb
+++ b/spec/ruby/library/win32ole/win32ole_param/retval_spec.rb
@@ -9,7 +9,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @param_overwritefiles.retval?(1) }.should raise_error ArgumentError
+ -> { @param_overwritefiles.retval?(1) }.should raise_error ArgumentError
end
it "returns false for 3rd parameter of FileSystemObject's 'CopyFile' method" do
diff --git a/spec/ruby/library/win32ole/win32ole_param/shared/name.rb b/spec/ruby/library/win32ole/win32ole_param/shared/name.rb
index b7892d92fb..043bc32856 100644
--- a/spec/ruby/library/win32ole/win32ole_param/shared/name.rb
+++ b/spec/ruby/library/win32ole/win32ole_param/shared/name.rb
@@ -9,7 +9,7 @@ platform_is :windows do
end
it "raises ArgumentError if argument is given" do
- lambda { @param_overwritefiles.send(@method, 1) }.should raise_error ArgumentError
+ -> { @param_overwritefiles.send(@method, 1) }.should raise_error ArgumentError
end
it "returns expected value for Scripting Runtime's 'name' method" do