From 3e278dba2fb90bc4bded73626f7f962c1898cfb0 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Fri, 11 Sep 2020 14:47:07 +0200 Subject: [PATCH] Remove tests using Bug::NotImplement class. On Ruby 2.5.5, it's not implemented in ext/-test-/notimplement/bug.c . The patch is available from 2.6. See https://github.com/ruby/ruby/commit/0381ec5164c12a20bf5889c18b3a5d94ad7af623 --- ruby-2.8.0-Moved-not-implemented-method-tests.patch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ruby-2.8.0-Moved-not-implemented-method-tests.patch b/ruby-2.8.0-Moved-not-implemented-method-tests.patch index 8202043..72d09bc 100644 --- a/ruby-2.8.0-Moved-not-implemented-method-tests.patch +++ b/ruby-2.8.0-Moved-not-implemented-method-tests.patch @@ -15,18 +15,16 @@ diff --git a/test/-ext-/test_notimplement.rb b/test/-ext-/test_notimplement.rb index 0eba7bdaf8..be8c3623cc 100644 --- a/test/-ext-/test_notimplement.rb +++ b/test/-ext-/test_notimplement.rb -@@ -10,6 +10,13 @@ def test_funcall_notimplement +@@ -10,6 +10,11 @@ def test_funcall_notimplement end def test_respond_to + assert_include(Bug.methods(false), :notimplement) -+ assert_include(Bug::NotImplement.instance_methods(false), :notimplement) assert_not_respond_to(Bug, :notimplement) end + + def test_method_inspect_notimplement + assert_match(/not-implemented/, Bug.method(:notimplement).inspect) -+ assert_match(/not-implemented/, Bug::NotImplement.instance_method(:notimplement).inspect) + end end diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb