summaryrefslogtreecommitdiff
path: root/test/-ext-/path_to_class/test_path_to_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/path_to_class/test_path_to_class.rb')
-rw-r--r--test/-ext-/path_to_class/test_path_to_class.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/-ext-/path_to_class/test_path_to_class.rb b/test/-ext-/path_to_class/test_path_to_class.rb
new file mode 100644
index 0000000000..fdf4097fde
--- /dev/null
+++ b/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