Commit 3979cb04 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2281 from ksss/doc-test

instance method name use "#" instead of "." for assert
parents 1f6d8d73 464bbbdd
...@@ -254,7 +254,7 @@ assert('Module#const_get', '15.2.2.4.21') do ...@@ -254,7 +254,7 @@ assert('Module#const_get', '15.2.2.4.21') do
assert_equal 42, Test4ConstGet.const_get(:Const4Test4ConstGet) assert_equal 42, Test4ConstGet.const_get(:Const4Test4ConstGet)
end end
assert('Module.const_missing', '15.2.2.4.22') do assert('Module#const_missing', '15.2.2.4.22') do
module Test4ConstMissing module Test4ConstMissing
def self.const_missing(sym) def self.const_missing(sym)
42 # the answer to everything 42 # the answer to everything
...@@ -273,7 +273,7 @@ assert('Module#const_get', '15.2.2.4.23') do ...@@ -273,7 +273,7 @@ assert('Module#const_get', '15.2.2.4.23') do
assert_equal 23, Test4ConstSet.const_get(:Const4Test4ConstSet) assert_equal 23, Test4ConstSet.const_get(:Const4Test4ConstSet)
end end
assert('Module.constants', '15.2.2.4.24') do assert('Module#constants', '15.2.2.4.24') do
$n = [] $n = []
module TestA module TestA
C = 1 C = 1
...@@ -444,7 +444,7 @@ assert('Module#remove_method', '15.2.2.4.41') do ...@@ -444,7 +444,7 @@ assert('Module#remove_method', '15.2.2.4.41') do
assert_false Test4RemoveMethod::Child.instance_methods(false).include? :hello assert_false Test4RemoveMethod::Child.instance_methods(false).include? :hello
end end
assert('Module.undef_method', '15.2.2.4.42') do assert('Module#undef_method', '15.2.2.4.42') do
module Test4UndefMethod module Test4UndefMethod
class Parent class Parent
def hello def hello
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment