diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-08-26 10:49:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-08-26 12:15:47 +0900 |
commit | bd1b1eeb0e528da983e76216d459a1d61aa026cb (patch) | |
tree | 132106d00b580a4c776650785c460e58070ca85c | |
parent | 9c2af0a171cb362ba3b1eb116b6fdb060cb62d2c (diff) | |
download | ruby-bd1b1eeb0e528da983e76216d459a1d61aa026cb.tar.gz |
ruby-prof is now optional
-rw-r--r-- | common.mk | 2 | ||||
-rw-r--r-- | spec/syntax_suggest/unit/api_spec.rb | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -1423,7 +1423,7 @@ no-test-syntax-suggest-prepare: no-test-syntax-suggest-precheck yes-test-syntax-suggest-prepare: yes-test-syntax-suggest-precheck $(ACTIONS_GROUP) $(XRUBY) -C "$(srcdir)" bin/gem install --no-document \ - --install-dir .bundle --conservative "bundler" "rake" "rspec:~> 3" "ruby-prof" + --install-dir .bundle --conservative "bundler" "rake" "rspec:~> 3" #"ruby-prof" $(ACTIONS_ENDGROUP) RSPECOPTS = diff --git a/spec/syntax_suggest/unit/api_spec.rb b/spec/syntax_suggest/unit/api_spec.rb index 284a4cdeec..21df86bb3e 100644 --- a/spec/syntax_suggest/unit/api_spec.rb +++ b/spec/syntax_suggest/unit/api_spec.rb @@ -1,7 +1,10 @@ # frozen_string_literal: true require_relative "../spec_helper" -require "ruby-prof" +begin + require "ruby-prof" +rescue LoadError +end module SyntaxSuggest RSpec.describe "Top level SyntaxSuggest api" do |