We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d8674a commit 96964f5Copy full SHA for 96964f5
test/test_rdoc_parser_ruby.rb
@@ -1360,6 +1360,23 @@ def test_parse_comment_nested
1360
assert_equal 'comment', c.comment
1361
end
1362
1363
+ def test_parse_class_the_same_of_outside
1364
+ util_parser <<-RUBY
1365
+module A
1366
+ class A::B
1367
+ end
1368
+end
1369
+ RUBY
1370
+
1371
+ @parser.scan
1372
1373
+ assert_includes @store.modules_hash, 'A'
1374
+ module_a = @store.find_module_named 'A'
1375
+ refute_empty module_a.classes_hash
1376
+ assert_includes module_a.classes_hash, 'B'
1377
+ refute_includes module_a.classes_hash, 'A'
1378
1379
1380
def test_parse_constant_with_bracket
1381
util_parser <<-RUBY
1382
class Klass
0 commit comments