зеркало из https://github.com/github/ruby.git
Skip examples for SyntaxError extensions on Ruby 3.2
This commit is contained in:
Родитель
8abf9e6ad0
Коммит
d55d1a737b
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче