summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-24 11:22:29 -0400
committergit <svn-admin@ruby-lang.org>2024-05-24 17:19:33 +0000
commit870350253e1df70f56d33107b9ed3b9ebaaccdec (patch)
tree1cf7fa7104f7c8274956cc0ed313a667c4c5e133 /test
parent47b723f8906ba24af13292c43e389b716e24cf17 (diff)
[ruby/prism] Remove Debug::static_inspect
https://github.com/ruby/prism/commit/486c71c426
Diffstat (limited to 'test')
-rw-r--r--test/prism/static_inspect_test.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/prism/static_inspect_test.rb b/test/prism/static_inspect_test.rb
index 8df2fd241e..cc8ed28c95 100644
--- a/test/prism/static_inspect_test.rb
+++ b/test/prism/static_inspect_test.rb
@@ -2,8 +2,6 @@
require_relative "test_helper"
-return if Prism::BACKEND == :FFI
-
module Prism
class StaticInspectTest < TestCase
def test_false
@@ -84,7 +82,8 @@ module Prism
private
def static_inspect(source, **options)
- Debug.static_inspect(source, **options)
+ warnings = Prism.parse("{ #{source} => 1, #{source} => 1 }", **options).warnings
+ warnings.last.message[/^key (.+) is duplicated and overwritten on line \d/, 1]
end
end
end