mirror of
https://github.com/ruby/ruby.git
synced 2025-09-24 04:54:01 +02:00
object.c: fix typo
* object.c (rb_mod_const_get): fix typo. should use SYM2ID() not ID2SYM(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c74995b2af
commit
db318509d5
2 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ class TestModule < Test::Unit::TestCase
|
|||
assert_equal [:Foo, :Bar, :Baz], classes
|
||||
end
|
||||
|
||||
def test_nested_bad_class
|
||||
def test_nested_get_bad_class
|
||||
assert_raise(TypeError) do
|
||||
self.class.const_get([User, 'USER', 'Foo'].join('::'))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue