Skip to content

Commit 56b59c5

Browse files
authored
Merge pull request #995 from Shopify/at/audit-sorbet-assertions-test
Remove redundant trailing comment test
2 parents 5f36543 + e4ca92b commit 56b59c5

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

test/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments_test.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -458,17 +458,6 @@ def test_does_not_translate_assigns_with_dangling_conditionals
458458
assert_equal(rb, rbi_to_rbs(rb))
459459
end
460460

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-
RB
470-
end
471-
472461
def test_translate_cast_in_oneliners
473462
rb = <<~RB
474463
arr.map { |x| T.must(x) }

0 commit comments

Comments
 (0)