diff options
author | Shugo Maeda <[email protected]> | 2023-07-14 15:13:14 +0900 |
---|---|---|
committer | Shugo Maeda <[email protected]> | 2023-07-31 17:23:17 +0900 |
commit | a542512b7c394847a488e9b94d9defebe26003ce () | |
tree | 287657083fba9728d52407d0d224f3a0497cfebc /test/ruby/test_refinement.rb | |
parent | cfd7729ce7a31c8b6ec5dd0e99c67b2932de4732 (diff) |
Add Refinement#target and deprecate Refinement#refined_class
[Feature #19714]
Notes: Merged: https://.com/ruby/ruby/pull/8075
-rw-r--r-- | test/ruby/test_refinement.rb | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1798,7 +1798,7 @@ class TestRefinement < Test::Unit::TestCase assert_equal([int_refinement, str_refinement], m.refinements) end - def test_refined_class refinements = Module.new { refine Integer do end @@ -1806,7 +1806,9 @@ class TestRefinement < Test::Unit::TestCase refine String do end }.refinements assert_equal(Integer, refinements[0].refined_class) assert_equal(String, refinements[1].refined_class) end |