Skip to content

Commit f1b92da

Browse files
committed
Update XML test outputs for additional sorbet output
1 parent 5704611 commit f1b92da

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/spoom/cli/srb/tc_test.rb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,22 @@ def test_output_errors_to_junit_xml
327327
<failure type='7003'>
328328
<![CDATA[In file errors/errors.rb:
329329
5 | sig { params(bar: Bar).returns(C) }
330-
^^^^^^]]>
330+
^^^^^^
331+
Got `T.class_of(Foo)` originating from:
332+
errors/errors.rb:4:
333+
4 |class Foo
334+
^]]>
331335
</failure>
332336
</testcase>
333337
<testcase name='Method `sig` does not exist on `T.class_of(Foo)`' file='errors/errors.rb' line='5'>
334338
<failure type='7003'>
335339
<![CDATA[In file errors/errors.rb:
336340
5 | sig { params(bar: Bar).returns(C) }
337341
^^^
342+
Got `T.class_of(Foo)` originating from:
343+
errors/errors.rb:4:
344+
4 |class Foo
345+
^
338346
Autocorrect: Use `-a` to autocorrect
339347
errors/errors.rb:5: Insert `extend T::Sig`
340348
5 | sig { params(bar: Bar).returns(C) }
@@ -359,7 +367,11 @@ def test_output_errors_to_junit_xml
359367
<failure type='7003'>
360368
<![CDATA[In file errors/errors.rb:
361369
11 |b.foo(b, c)
362-
^]]>
370+
^
371+
Got `T.class_of(<root>)` originating from:
372+
errors/errors.rb:4:
373+
4 |class Foo
374+
^]]>
363375
</failure>
364376
</testcase>
365377
<testcase name='Too many arguments provided for method `Foo#foo`. Expected: `1`, got: `2`' file='errors/errors.rb' line='11'>

0 commit comments

Comments
 (0)