summaryrefslogtreecommitdiff
path: root/jni/ruby/test/-ext-/path_to_class
diff options
context:
space:
mode:
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