diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-08 07:49:02 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-08 07:49:02 +0000 |
commit | 7510ffea98e284ed93f981f6e0f2aef86630bded (patch) | |
tree | 05efd9d9f34982a5ddd24c05751901d944ee8ac1 /test | |
parent | 2ca4478b319b4232df856bb0fff5625477b6548d (diff) | |
download | ruby-7510ffea98e284ed93f981f6e0f2aef86630bded.tar.gz |
* eval.c (rb_mod_s_used_modules): rename Module.used_refinements to
Module.used_modules. [Feature #7418] [ruby-core:49805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_refinement.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb index 5980280235..c3c2dbc61f 100644 --- a/test/ruby/test_refinement.rb +++ b/test/ruby/test_refinement.rb @@ -1651,27 +1651,27 @@ class TestRefinement < Test::Unit::TestCase module Foo using RefB - USED_REFS = Module.used_refinements + USED_MODS = Module.used_modules end module Bar using RefC - USED_REFS = Module.used_refinements + USED_MODS = Module.used_modules end module Combined using RefA using RefB - USED_REFS = Module.used_refinements + USED_MODS = Module.used_modules end end - def test_used_refinements + def test_used_modules ref = VisibleRefinements - assert_equal [], Module.used_refinements - assert_equal [ref::RefB], ref::Foo::USED_REFS - assert_equal [ref::RefC], ref::Bar::USED_REFS - assert_equal [ref::RefB, ref::RefA], ref::Combined::USED_REFS + assert_equal [], Module.used_modules + assert_equal [ref::RefB], ref::Foo::USED_MODS + assert_equal [ref::RefC], ref::Bar::USED_MODS + assert_equal [ref::RefB, ref::RefA], ref::Combined::USED_MODS end def test_warn_setconst_in_refinmenet |