ruby-changes:59012
From: Yuki <ko1@a...>
Date: Sun, 1 Dec 2019 12:29:19 +0900 (JST)
Subject: [ruby-changes:59012] cc7455dd1e (master): Relax test requirements for DYM's verbose formatter
https://git.ruby-lang.org/ruby.git/commit/?id=cc7455dd1e From cc7455dd1e98e297dbea2fd92e491bd36f1b473e Mon Sep 17 00:00:00 2001 From: Yuki Nishijima <yk.nishijima@g...> Date: Sat, 30 Nov 2019 22:29:02 -0500 Subject: Relax test requirements for DYM's verbose formatter diff --git a/test/did_you_mean/test_verbose_formatter.rb b/test/did_you_mean/test_verbose_formatter.rb index f850327..6639d60 100644 --- a/test/did_you_mean/test_verbose_formatter.rb +++ b/test/did_you_mean/test_verbose_formatter.rb @@ -12,11 +12,10 @@ class VerboseFormatterTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/did_you_mean/test_verbose_formatter.rb#L12 def test_message @error = assert_raise(NoMethodError){ 1.zeor? } - assert_equal <<~MESSAGE.strip, @error.message.strip + assert_match <<~MESSAGE.strip, @error.message undefined method `zeor?' for 1:Integer Did you mean? zero? - MESSAGE end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/