1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

LoadError is not a subclass of StandardError

This commit is contained in:
Nobuyoshi Nakada 2019-11-29 11:25:23 +09:00
parent f83bebdf7a
commit 5ad32d5504
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -1,6 +1,10 @@
# frozen_string_literal: false
require_relative 'test_optparse'
require "did_you_mean" rescue return
begin
require "did_you_mean"
rescue LoadError
return
end
class TestOptionParser::DidYouMean < TestOptionParser
def setup