diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-20 20:18:52 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-20 20:18:52 +0000 |
commit | 1d15d5f08032acf1b7bceacbb450d617ff6e0931 (patch) | |
tree | a3785a79899302bc149e4a6e72f624ac27dc1f10 /spec/rubyspec/library/win32ole/win32ole_param | |
parent | 75bfc6440d595bf339007f4fb280fd4d743e89c1 (diff) |
Move spec/rubyspec to spec/ruby for consistency
* Other ruby implementations use the spec/ruby directory.
[Misc #13792] [ruby-core:82287]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/rubyspec/library/win32ole/win32ole_param')
9 files changed, 0 insertions, 179 deletions
diff --git a/spec/rubyspec/library/win32ole/win32ole_param/default_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/default_spec.rb deleted file mode 100644 index 7a1337ec7c..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/default_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#default" do - before :each do - ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "Shell") - m_browse_for_folder = WIN32OLE_METHOD.new(ole_type, "BrowseForFolder") - @params = m_browse_for_folder.params - - ole_type = WIN32OLE_TYPE.new("Microsoft Scripting Runtime", "FileSystemObject") - m_copyfile = WIN32OLE_METHOD.new(ole_type, "CopyFile") - @param_overwritefiles = m_copyfile.params[2] - end - - it "raises ArgumentError if argument is given" do - lambda { @params[0].default(1) }.should raise_error ArgumentError - end - - it "returns nil for each of WIN32OLE_PARAM for Shell's 'BrowseForFolder' method" do - @params.each do |p| - p.default.should be_nil - end - end - - it "returns true for 3rd parameter of FileSystemObject's 'CopyFile' method" do - @param_overwritefiles.default.should == true # not be_true - end - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/input_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/input_spec.rb deleted file mode 100644 index bdf4bccc79..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/input_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#input?" do - before :each do - ole_type = WIN32OLE_TYPE.new("Microsoft Scripting Runtime", "FileSystemObject") - m_copyfile = WIN32OLE_METHOD.new(ole_type, "CopyFile") - @param_overwritefiles = m_copyfile.params[2] - end - - it "raises ArgumentError if argument is given" do - lambda { @param_overwritefiles.input?(1) }.should raise_error ArgumentError - end - - it "returns true for 3rd parameter of FileSystemObject's 'CopyFile' method" do - @param_overwritefiles.input?.should == true - end - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/name_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/name_spec.rb deleted file mode 100644 index b3c947d6fb..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/name_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require File.expand_path('../shared/name', __FILE__) - -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#name" do - it_behaves_like :win32ole_param_name, :name - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/ole_type_detail_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/ole_type_detail_spec.rb deleted file mode 100644 index 3ba51c02f1..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/ole_type_detail_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#ole_type_detail" do - before :each do - ole_type_detail = WIN32OLE_TYPE.new("Microsoft Scripting Runtime", "FileSystemObject") - m_copyfile = WIN32OLE_METHOD.new(ole_type_detail, "CopyFile") - @param_overwritefiles = m_copyfile.params[2] - end - - it "raises ArgumentError if argument is given" do - lambda { @param_overwritefiles.ole_type_detail(1) }.should raise_error ArgumentError - end - - it "returns ['BOOL'] for 3rd parameter of FileSystemObject's 'CopyFile' method" do - @param_overwritefiles.ole_type_detail.should == ['BOOL'] - end - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/ole_type_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/ole_type_spec.rb deleted file mode 100644 index 52bee2c9b8..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/ole_type_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#ole_type" do - before :each do - ole_type = WIN32OLE_TYPE.new("Microsoft Scripting Runtime", "FileSystemObject") - m_copyfile = WIN32OLE_METHOD.new(ole_type, "CopyFile") - @param_overwritefiles = m_copyfile.params[2] - end - - it "raises ArgumentError if argument is given" do - lambda { @param_overwritefiles.ole_type(1) }.should raise_error ArgumentError - end - - it "returns 'BOOL' for 3rd parameter of FileSystemObject's 'CopyFile' method" do - @param_overwritefiles.ole_type.should == 'BOOL' - end - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/optional_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/optional_spec.rb deleted file mode 100644 index 2476df8641..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/optional_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#optional?" do - before :each do - ole_type_detail = WIN32OLE_TYPE.new("Microsoft Scripting Runtime", "FileSystemObject") - m_copyfile = WIN32OLE_METHOD.new(ole_type_detail, "CopyFile") - @param_overwritefiles = m_copyfile.params[2] - end - - it "raises ArgumentError if argument is given" do - lambda { @param_overwritefiles.optional?(1) }.should raise_error ArgumentError - end - - it "returns true for 3rd parameter of FileSystemObject's 'CopyFile' method" do - @param_overwritefiles.optional?.should be_true - end - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/retval_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/retval_spec.rb deleted file mode 100644 index 90946c0774..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/retval_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#retval?" do - before :each do - ole_type_detail = WIN32OLE_TYPE.new("Microsoft Scripting Runtime", "FileSystemObject") - m_copyfile = WIN32OLE_METHOD.new(ole_type_detail, "CopyFile") - @param_overwritefiles = m_copyfile.params[2] - end - - it "raises ArgumentError if argument is given" do - lambda { @param_overwritefiles.retval?(1) }.should raise_error ArgumentError - end - - it "returns false for 3rd parameter of FileSystemObject's 'CopyFile' method" do - @param_overwritefiles.retval?.should be_false - end - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/shared/name.rb b/spec/rubyspec/library/win32ole/win32ole_param/shared/name.rb deleted file mode 100644 index b7892d92fb..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/shared/name.rb +++ /dev/null @@ -1,21 +0,0 @@ -platform_is :windows do - require 'win32ole' - - describe :win32ole_param_name, shared: true do - before :each do - ole_type_detail = WIN32OLE_TYPE.new("Microsoft Scripting Runtime", "FileSystemObject") - m_copyfile = WIN32OLE_METHOD.new(ole_type_detail, "CopyFile") - @param_overwritefiles = m_copyfile.params[2] - end - - it "raises ArgumentError if argument is given" do - lambda { @param_overwritefiles.send(@method, 1) }.should raise_error ArgumentError - end - - it "returns expected value for Scripting Runtime's 'name' method" do - @param_overwritefiles.send(@method).should == 'OverWriteFiles' # note the capitalization - end - - end - -end diff --git a/spec/rubyspec/library/win32ole/win32ole_param/to_s_spec.rb b/spec/rubyspec/library/win32ole/win32ole_param/to_s_spec.rb deleted file mode 100644 index 7852bb0494..0000000000 --- a/spec/rubyspec/library/win32ole/win32ole_param/to_s_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require File.expand_path('../shared/name', __FILE__) - -platform_is :windows do - require 'win32ole' - - describe "WIN32OLE_PARAM#to_s" do - it_behaves_like :win32ole_param_name, :to_s - - end - -end |