Make benchmark exapmles as optional
This commit is contained in:
parent
3a1414a70b
commit
1089282acc
Notes:
git
2025-01-10 01:20:02 +00:00
@ -235,5 +235,5 @@ module SyntaxSuggest
|
|||||||
end_is_missing_here
|
end_is_missing_here
|
||||||
EOM
|
EOM
|
||||||
end
|
end
|
||||||
end
|
end if defined?(::Benchmark)
|
||||||
end
|
end
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
require "bundler/setup"
|
require "bundler/setup"
|
||||||
require "syntax_suggest/api"
|
require "syntax_suggest/api"
|
||||||
|
|
||||||
require "benchmark"
|
begin
|
||||||
|
require "benchmark"
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user