Add extra spec from https://github.com/ruby/ruby/pull/2173
This commit is contained in:
parent
2f2fc939eb
commit
e5e811e4a0
@ -22,6 +22,11 @@ describe "Module#autoload?" do
|
||||
ModuleSpecs::Autoload::Parent.autoload :AnotherAutoload, "another_autoload.rb"
|
||||
ModuleSpecs::Autoload::Child.autoload?(:AnotherAutoload, false).should be_nil
|
||||
end
|
||||
|
||||
it "returns the name of the file that will be loaded if recursion is disabled but the autoload is defined on the classs itself" do
|
||||
ModuleSpecs::Autoload::Child.autoload :AnotherAutoload, "another_autoload.rb"
|
||||
ModuleSpecs::Autoload::Child.autoload?(:AnotherAutoload, false).should == "another_autoload.rb"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user