ruby-changes:59011
From: Koichi <ko1@a...>
Date: Sun, 1 Dec 2019 12:26:25 +0900 (JST)
Subject: [ruby-changes:59011] 56faa13a1c (master): remove spaces to pass a test.
https://git.ruby-lang.org/ruby.git/commit/?id=56faa13a1c From 56faa13a1c5261a0d046a4c0203e88fccfafae17 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Sun, 1 Dec 2019 12:24:50 +0900 Subject: remove spaces to pass a test. 23d7f4c5e1ce164e78d77de694dccc0c41f6de3d breaks a test which expect to match error message. To avoid this failure, use #strip for expect and actual results. diff --git a/test/did_you_mean/test_verbose_formatter.rb b/test/did_you_mean/test_verbose_formatter.rb index 098abf9..f850327 100644 --- a/test/did_you_mean/test_verbose_formatter.rb +++ b/test/did_you_mean/test_verbose_formatter.rb @@ -12,7 +12,7 @@ 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.chomp, @error.message + assert_equal <<~MESSAGE.strip, @error.message.strip undefined method `zeor?' for 1:Integer Did you mean? zero? -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/