mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@875a09e
This commit is contained in:
parent
a06301b103
commit
5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m.dispid(0) }.should raise_error ArgumentError
|
||||
-> { @m.dispid(0) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected dispatch ID for Shell's 'namespace' method" do
|
||||
|
|
|
@ -11,7 +11,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @on_dbl_click_method.event_interface(1) }.should raise_error ArgumentError
|
||||
-> { @on_dbl_click_method.event_interface(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected string for System Monitor Control's 'OnDblClick' method" do
|
||||
|
|
|
@ -9,7 +9,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @on_dbl_click_method.event?(1) }.should raise_error ArgumentError
|
||||
-> { @on_dbl_click_method.event?(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns true for System Monitor Control's 'OnDblClick' method" do
|
||||
|
|
|
@ -10,7 +10,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @get_file_version.helpcontext(1) }.should raise_error ArgumentError
|
||||
-> { @get_file_version.helpcontext(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for FileSystemObject's 'GetFileVersion' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.helpfile(1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.helpfile(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Scripting Runtime's 'File' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.helpstring(1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.helpstring(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Scripting Runtime's 'File' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.invkind(1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.invkind(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Scripting Runtime's 'name' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.invoke_kind(1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.invoke_kind(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Scripting Runtime's 'name' method" do
|
||||
|
|
|
@ -7,12 +7,12 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises TypeError when given non-strings" do
|
||||
lambda { WIN32OLE_METHOD.new(1, 2) }.should raise_error TypeError
|
||||
-> { WIN32OLE_METHOD.new(1, 2) }.should raise_error TypeError
|
||||
end
|
||||
|
||||
it "raises ArgumentError if only 1 argument is given" do
|
||||
lambda { WIN32OLE_METHOD.new("hello") }.should raise_error ArgumentError
|
||||
lambda { WIN32OLE_METHOD.new(@ole_type) }.should raise_error ArgumentError
|
||||
-> { WIN32OLE_METHOD.new("hello") }.should raise_error ArgumentError
|
||||
-> { WIN32OLE_METHOD.new(@ole_type) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns a valid WIN32OLE_METHOD object" do
|
||||
|
@ -21,11 +21,11 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises WIN32OLERuntimeError if the method does not exist" do
|
||||
lambda { WIN32OLE_METHOD.new(@ole_type, "NonexistentMethod") }.should raise_error WIN32OLERuntimeError
|
||||
-> { WIN32OLE_METHOD.new(@ole_type, "NonexistentMethod") }.should raise_error WIN32OLERuntimeError
|
||||
end
|
||||
|
||||
it "raises TypeError if second argument is not a String" do
|
||||
lambda { WIN32OLE_METHOD.new(@ole_type, 5) }.should raise_error TypeError
|
||||
-> { WIN32OLE_METHOD.new(@ole_type, 5) }.should raise_error TypeError
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.offset_vtbl(1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.offset_vtbl(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Scripting Runtime's 'name' method" do
|
||||
|
|
|
@ -10,7 +10,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.params(1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.params(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns empty array for Scripting Runtime's 'name' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_browse_for_folder.return_type_detail(1) }.should raise_error ArgumentError
|
||||
-> { @m_browse_for_folder.return_type_detail(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Shell Control's 'BrowseForFolder' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.return_type(1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.return_type(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Scripting Runtime's 'name' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_browse_for_folder.return_vtype(1) }.should raise_error ArgumentError
|
||||
-> { @m_browse_for_folder.return_vtype(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Shell Control's 'BrowseForFolder' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_file_name.send(@method, 1) }.should raise_error ArgumentError
|
||||
-> { @m_file_name.send(@method, 1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Scripting Runtime's 'name' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_browse_for_folder.size_opt_params(1) }.should raise_error ArgumentError
|
||||
-> { @m_browse_for_folder.size_opt_params(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Shell Control's 'BrowseForFolder' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_browse_for_folder.size_params(1) }.should raise_error ArgumentError
|
||||
-> { @m_browse_for_folder.size_params(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns expected value for Shell Control's 'BrowseForFolder' method" do
|
||||
|
|
|
@ -8,7 +8,7 @@ platform_is :windows do
|
|||
end
|
||||
|
||||
it "raises ArgumentError if argument is given" do
|
||||
lambda { @m_browse_for_folder.visible?(1) }.should raise_error ArgumentError
|
||||
-> { @m_browse_for_folder.visible?(1) }.should raise_error ArgumentError
|
||||
end
|
||||
|
||||
it "returns true for Shell Control's 'BrowseForFolder' method" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue