[前][次][番号順一覧][スレッド一覧]

ruby-changes:74468

From: Takashi <ko1@a...>
Date: Sun, 13 Nov 2022 14:55:23 +0900 (JST)
Subject: [ruby-changes:74468] c0735d1d72 (master): Fix a CI failure in bigdecimal

https://git.ruby-lang.org/ruby.git/commit/?id=c0735d1d72

From c0735d1d72aeeed777a233831c6a5208edadc2dc Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sat, 12 Nov 2022 21:55:00 -0800
Subject: Fix a CI failure in bigdecimal

---
 spec/ruby/library/bigdecimal/round_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/ruby/library/bigdecimal/round_spec.rb b/spec/ruby/library/bigdecimal/round_spec.rb
index 501a1a7342..caf68afa04 100644
--- a/spec/ruby/library/bigdecimal/round_spec.rb
+++ b/spec/ruby/library/bigdecimal/round_spec.rb
@@ -229,6 +229,6 @@ describe "BigDecimal#round" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/bigdecimal/round_spec.rb#L229
   end
 
   it "raise for a non-existent round mode" do
-    -> { @p1_50.round(0, :nonsense) }.should raise_error(ArgumentError, "invalid rounding mode")
+    -> { @p1_50.round(0, :nonsense) }.should raise_error(ArgumentError, "invalid rounding mode (nonsense)")
   end
 end
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]