diff options
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 7ced9a9eba..85ca4dd34a 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -995,7 +995,7 @@ end.join 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) |