Skip to content

Commit bbb885e

Browse files
committed
Fix test
1 parent 603d6cf commit bbb885e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/rbs/cli_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,16 +562,16 @@ class B[S = self]
562562
563563
interface _C[T = self]
564564
end
565-
RBS
566565
567-
(Pathname(dir) + 'b.rbs').write(<<~RBS)
568566
type t[T = self] = untyped
569567
RBS
570568

571569
cli.run(["-I", dir, "validate"])
572570

573-
refute_operator stdout.string, :include?, "/a.rbs"
574-
assert_include stdout.string, "/b.rbs:1:11...1:15: `self` type is not allowed in this context (RBS::WillSyntaxError)"
571+
assert_include stdout.string, "/a.rbs:1:13...1:17: `self` type is not allowed in this context (RBS::WillSyntaxError)\n"
572+
assert_include stdout.string, "/a.rbs:4:12...4:16: `self` type is not allowed in this context (RBS::WillSyntaxError)\n"
573+
assert_include stdout.string, "/a.rbs:7:17...7:21: `self` type is not allowed in this context (RBS::WillSyntaxError)\n"
574+
assert_include stdout.string, "/a.rbs:10:11...10:15: `self` type is not allowed in this context (RBS::WillSyntaxError)\n"
575575
end
576576
end
577577
end

0 commit comments

Comments
 (0)