Skip to content

Commit 794bb0b

Browse files
committed
Sync test_refinements.rb with original file
1 parent 05e27ec commit 794bb0b

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

test/mri/excludes/TestRefinement.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
exclude :test_eval_with_binding_scoping, "needs investigation"
22
exclude :test_include_refinement, "needs investigation"
33
exclude :test_prepend_after_refine, "needs investigation"
4-
exclude :test_refine_module, "needs investigation"
54
exclude :test_refine_prepended_class, "needs investigation"
65
exclude :test_refine_with_proc, "needs investigation"
76
exclude :test_respond_to_should_use_refinements, "needs investigation"

test/mri/tests/ruby/test_refinement.rb

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -406,20 +406,19 @@ def baz
406406
end
407407

408408
module M2
409-
# TODO CS 21-Feb-19 can we run this now?
410-
#refine M do
411-
# def foo
412-
# "M@M2#foo"
413-
# end
414-
#
415-
# def bar
416-
# "#{super} M@M2#bar"
417-
# end
418-
#
419-
# def baz
420-
# "#{super} M@M2#baz"
421-
# end
422-
#end
409+
refine M do
410+
def foo
411+
"M@M2#foo"
412+
end
413+
414+
def bar
415+
"#{super} M@M2#bar"
416+
end
417+
418+
def baz
419+
"#{super} M@M2#baz"
420+
end
421+
end
423422
end
424423

425424
using M2

0 commit comments

Comments
 (0)