зеркало из https://github.com/github/ruby.git
14 строки
315 B
Ruby
14 строки
315 B
Ruby
# frozen_string_literal: false
|
|
require 'test/unit'
|
|
|
|
class Test_PathToClass < Test::Unit::TestCase
|
|
require '-test-/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
|