There was an error while loading. Please reload this page.
2 parents 5f36543 + e4ca92b commit 56b59c5Copy full SHA for 56b59c5
1 file changed
test/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments_test.rb
@@ -458,17 +458,6 @@ def test_does_not_translate_assigns_with_dangling_conditionals
458
assert_equal(rb, rbi_to_rbs(rb))
459
end
460
461
- def test_does_not_translate_assertions_already_with_comments
462
- rb = <<~RB
463
- a = T.let(42, Integer) # as Integer
464
- RB
465
-
466
- # Now translates and preserves the comment
467
- assert_equal(<<~RB, rbi_to_rbs(rb))
468
- a = 42 #: Integer # as Integer
469
470
- end
471
472
def test_translate_cast_in_oneliners
473
rb = <<~RB
474
arr.map { |x| T.must(x) }
0 commit comments