diff options
Diffstat (limited to 'spec/syntax_suggest/unit/api_spec.rb')
-rw-r--r-- | spec/syntax_suggest/unit/api_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/syntax_suggest/unit/api_spec.rb b/spec/syntax_suggest/unit/api_spec.rb index 079a91e46d..e900b9e10b 100644 --- a/spec/syntax_suggest/unit/api_spec.rb +++ b/spec/syntax_suggest/unit/api_spec.rb @@ -8,6 +8,12 @@ end module SyntaxSuggest RSpec.describe "Top level SyntaxSuggest api" do + it "doesn't load prism if env var is set" do + skip("SYNTAX_SUGGEST_DISABLE_PRISM not set") unless ENV["SYNTAX_SUGGEST_DISABLE_PRISM"] + + expect(SyntaxSuggest.use_prism_parser?).to be_falsey + end + it "has a `handle_error` interface" do fake_error = Object.new def fake_error.message |