Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test expectations for parse errors #2136

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/tapioca/cli/annotations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class AnnotationForSpoom

assert_stderr_includes(result, <<~ERR)
Can't import RBI file for `spoom` as it contains errors:
Error: unexpected end-of-input, assuming it is closing the parent top level context. expected an `end` to close the `class` statement. (-:4:0)
Error: unexpected end-of-input, assuming it is closing the parent top level context. expected an `end` to close the `class` statement. (-:3:24)
ERR

refute_includes(result.out, "create sorbet/rbi/annotations/spoom.rbi")
Expand Down
2 changes: 1 addition & 1 deletion spec/tapioca/cli/check_shims_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def foo; end

assert_stderr_equals(<<~ERR, result)

Warning: unexpected end-of-input, assuming it is closing the parent top level context. expected an `end` to close the `class` statement. (sorbet/rbi/shims/foo.rbi:2:0)
Warning: unexpected end-of-input, assuming it is closing the parent top level context. expected an `end` to close the `class` statement. (sorbet/rbi/shims/foo.rbi:1:9)

Duplicated RBI for ::Foo#foo:
* sorbet/rbi/shims/bar.rbi:2:2-2:14
Expand Down
2 changes: 1 addition & 1 deletion spec/tapioca/cli/gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ module Foo # Syntax error
"unexpected end-of-input, assuming it is closing the parent top level context. expected an `end` to " \
"close the `module` statement.",
)
assert_stderr_includes(result, "foo/rbi/foo.rbi:2:0")
assert_stderr_includes(result, "foo/rbi/foo.rbi:1:25")

assert_project_file_equal("sorbet/rbi/gems/foo@0.0.1.rbi", FOO_RBI)

Expand Down
Loading