Skip to content

Support the new message format of NameError in Ruby 3.3 #889

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

Merged
merged 1 commit into from
Feb 10, 2023
Merged
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
8 changes: 4 additions & 4 deletions test/console/debugger_local_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_raised_is_accessible_from_repl
type "catch Exception"
type "c"
type "_raised"
assert_line_text(/undefined local variable or method `foo' for main:Object/)
assert_line_text(/undefined local variable or method `foo' for main/)
type "c"
end
end
Expand All @@ -43,7 +43,7 @@ def test_raised_is_accessible_from_command
debug_code(program) do
type "catch Exception pre: p _raised"
type "c"
assert_line_text(/undefined local variable or method `foo' for main:Object/)
assert_line_text(/undefined local variable or method `foo' for main/)
type "c"
end
end
Expand Down Expand Up @@ -96,7 +96,7 @@ def test_raised_doesnt_leak_to_program_binding

# stops for NoMethodError because _raised is not defined in the program
type "_raised"
assert_line_text(/undefined local variable or method `_raised' for main:Object/)
assert_line_text(/undefined local variable or method `_raised' for main/)
type "c"
end
end
Expand Down Expand Up @@ -155,7 +155,7 @@ def test_raised_doesnt_leak_to_program_binding
type "c"
# stops for NoMethodError because _return is not defined in the program
type "_raised"
assert_line_text(/undefined local variable or method `_return' for main:Object/)
assert_line_text(/undefined local variable or method `_return' for main/)
type "c"
end
end
Expand Down