summaryrefslogtreecommitdiff
path: root/spec/syntax_suggest
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-02 10:34:00 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-02 10:34:00 +0900
commitd55d1a737bf5784856cd35f2d94b7b5d411e6d3c (patch)
treea18b6de4745434dbabe8e940071a4c5d35b2c847 /spec/syntax_suggest
parent8abf9e6ad0390e384ab47243ed4ece62a4d9cea0 (diff)
downloadruby-d55d1a737bf5784856cd35f2d94b7b5d411e6d3c.tar.gz
Skip examples for SyntaxError extensions on Ruby 3.2
Diffstat (limited to 'spec/syntax_suggest')
-rw-r--r--spec/syntax_suggest/unit/api_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/syntax_suggest/unit/api_spec.rb b/spec/syntax_suggest/unit/api_spec.rb
index 006e26fd22..a89d9f6a33 100644
--- a/spec/syntax_suggest/unit/api_spec.rb
+++ b/spec/syntax_suggest/unit/api_spec.rb
@@ -67,6 +67,8 @@ module SyntaxSuggest
error = SyntaxError.new("#{fixtures_dir.join("this_project_extra_def.rb.txt")}:1 ")
+ skip if error.respond_to?(:path)
+
require "syntax_suggest/core_ext"
expect(error.detailed_message(highlight: true)).to include(SyntaxSuggest::DisplayCodeWithLineNumbers::TERMINAL_HIGHLIGHT)
@@ -78,6 +80,8 @@ module SyntaxSuggest
error = SyntaxError.new("#{fixtures_dir.join("this_project_extra_def.rb.txt")}:1 ")
+ skip if error.respond_to?(:path)
+
require "syntax_suggest/core_ext"
expect(error.detailed_message(syntax_suggest: true)).to_not eq(error.detailed_message(syntax_suggest: false))