diff options
author | Schneems <[email protected]> | 2023-12-04 15:23:41 -0600 |
---|---|---|
committer | git <[email protected]> | 2023-12-05 17:51:28 +0000 |
commit | 62c96959114ea165f7434da9edc42d15e4aaebfa (patch) | |
tree | 6bb150da5f217babb4a0dd5d1e54def300b140a9 /spec/syntax_suggest | |
parent | cce29750d797a85ac89540b9ad47816131652a2f (diff) |
[ruby/syntax_suggest] Support lexing with Prism
https://github.com/ruby/syntax_suggest/commit/7f4176a914
Diffstat (limited to 'spec/syntax_suggest')
-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 |