Sha256: fa4e403999a9a27e9e240c1a996e142a2ba8b072df77f3fac7472f025d7198b2
Contents?: true
Size: 949 Bytes
Versions: 83
Compression:
Stored size: 949 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' describe "Kernel#public_methods" do it "returns a list of the names of publicly accessible methods in the object" do KernelSpecs::Methods.public_methods(false).sort.should include(:allocate, :hachi, :ichi, :juu, :juu_ni, :new, :roku, :san, :shi, :superclass) KernelSpecs::Methods.new.public_methods(false).sort.should include(:juu_san, :ni) end it "returns a list of the names of publicly accessible methods in the object and its ancestors and mixed-in modules" do (KernelSpecs::Methods.public_methods(false) & KernelSpecs::Methods.public_methods).sort.should include( :allocate, :hachi, :ichi, :juu, :juu_ni, :new, :roku, :san, :shi, :superclass) m = KernelSpecs::Methods.new.public_methods m.should include(:ni, :juu_san) end end
Version data entries
83 entries across 83 versions & 1 rubygems