ruby-changes:58328
From: Nobuyoshi <ko1@a...>
Date: Mon, 21 Oct 2019 09:35:57 +0900 (JST)
Subject: [ruby-changes:58328] 27261007eb (master): DidYouMean can be an empty stub module [Bug #16263]
https://git.ruby-lang.org/ruby.git/commit/?id=27261007eb From 27261007eb45adae4d5b30cbafa2ef27a2345b3f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 21 Oct 2019 09:27:25 +0900 Subject: DidYouMean can be an empty stub module [Bug #16263] diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 7ced9a9..85ca4dd 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -995,7 +995,7 @@ end.join https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L995 error = NoMethodError.new("Message", :foo) assert_raise(ArgumentError) {error.receiver} - msg = Object.const_defined?(:DidYouMean) ? + msg = defined?(:DidYouMean.formatter) ? "Message\nDid you mean? for" : "Message" error = NoMethodError.new("Message", :foo, receiver: receiver) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/