summaryrefslogtreecommitdiff
path: root/jni/ruby/test/-ext-/path_to_class
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/test/-ext-/path_to_class
Fresh start
Diffstat (limited to 'jni/ruby/test/-ext-/path_to_class')
-rw-r--r--jni/ruby/test/-ext-/path_to_class/test_path_to_class.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/jni/ruby/test/-ext-/path_to_class/test_path_to_class.rb b/jni/ruby/test/-ext-/path_to_class/test_path_to_class.rb
new file mode 100644
index 0000000..fdf4097
--- /dev/null
+++ b/jni/ruby/test/-ext-/path_to_class/test_path_to_class.rb
@@ -0,0 +1,12 @@
+require 'test/unit'
+
+class Test_PathToClass < Test::Unit::TestCase
+ require '-test-/path_to_class/path_to_class'
+
+ def test_path_to_class
+ bug5691 = '[ruby-core:41410]'
+ assert_raise(ArgumentError, bug5691) {
+ Test_PathToClass.path_to_class("Test_PathToClass::Object")
+ }
+ end
+end