diff options
Diffstat (limited to 'spec/syntax_suggest/unit/api_spec.rb')
-rw-r--r-- | spec/syntax_suggest/unit/api_spec.rb | 4 |
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)) |