1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
eregon 2017-09-20 20:18:52 +00:00
parent 75bfc6440d
commit 1d15d5f080
4370 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,11 @@
require File.expand_path('../shared/name', __FILE__)
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#name" do
it_behaves_like :win32ole_variable_new, :name
end
end

View file

@ -0,0 +1,19 @@
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#ole_type_detail" do
# not sure how WIN32OLE_VARIABLE objects are supposed to be generated
# WIN32OLE_VARIABLE.new even seg faults in some cases
before :each do
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
it "returns a nonempty Array" do
@var.ole_type_detail.should be_kind_of Array
@var.ole_type_detail.should_not be_empty
end
end
end

View file

@ -0,0 +1,18 @@
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#ole_type" do
# not sure how WIN32OLE_VARIABLE objects are supposed to be generated
# WIN32OLE_VARIABLE.new even seg faults in some cases
before :each do
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
it "returns a String" do
@var.ole_type.should be_kind_of String
end
end
end

View file

@ -0,0 +1,18 @@
platform_is :windows do
require 'win32ole'
describe :win32ole_variable_new, shared: true do
# not sure how WIN32OLE_VARIABLE objects are supposed to be generated
# WIN32OLE_VARIABLE.new even seg faults in some cases
before :each do
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
it "returns a String" do
@var.send(@method).should be_kind_of String
end
end
end

View file

@ -0,0 +1,11 @@
require File.expand_path('../shared/name', __FILE__)
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#to_s" do
it_behaves_like :win32ole_variable_new, :to_s
end
end

View file

@ -0,0 +1,19 @@
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#value" do
# not sure how WIN32OLE_VARIABLE objects are supposed to be generated
# WIN32OLE_VARIABLE.new even seg faults in some cases
before :each do
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
it "returns a Integer" do
# according to doc, this could return nil
@var.value.should be_kind_of Integer
end
end
end

View file

@ -0,0 +1,19 @@
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#variable_kind" do
# not sure how WIN32OLE_VARIABLE objects are supposed to be generated
# WIN32OLE_VARIABLE.new even seg faults in some cases
before :each do
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
it "returns a String" do
@var.variable_kind.should be_kind_of String
@var.variable_kind.should == 'CONSTANT'
end
end
end

View file

@ -0,0 +1,19 @@
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#varkind" do
# TODO review
# not sure how WIN32OLE_VARIABLE objects are supposed to be generated
# WIN32OLE_VARIABLE.new even seg faults in some cases
before :each do
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
it "returns an Integer" do
@var.varkind.should be_kind_of Integer
end
end
end

View file

@ -0,0 +1,18 @@
platform_is :windows do
require 'win32ole'
describe "WIN32OLE_VARIABLE#visible?" do
# not sure how WIN32OLE_VARIABLE objects are supposed to be generated
# WIN32OLE_VARIABLE.new even seg faults in some cases
before :each do
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "ShellSpecialFolderConstants")
@var = ole_type.variables[0]
end
it "returns a String" do
@var.visible?.should be_true
end
end
end