From d066b9e01ccb2260fac8b2580c10e73335c7c7db Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Thu, 5 Feb 2026 20:38:00 +0100 Subject: Refactor type error to be more consistent [Bug #21864] Co-Authored-By: Benoit Daloze --- spec/ruby/shared/queue/deque.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/shared/queue') diff --git a/spec/ruby/shared/queue/deque.rb b/spec/ruby/shared/queue/deque.rb index a154da6274..fbd00143f8 100644 --- a/spec/ruby/shared/queue/deque.rb +++ b/spec/ruby/shared/queue/deque.rb @@ -105,11 +105,11 @@ describe :queue_deq, shared: true do q = @object.call -> { q.send(@method, timeout: "1") - }.should raise_error(TypeError, "no implicit conversion to float from string") + }.should raise_consistent_error(TypeError, "no implicit conversion of String into Float") -> { q.send(@method, timeout: false) - }.should raise_error(TypeError, "no implicit conversion to float from false") + }.should raise_consistent_error(TypeError, "no implicit conversion of false into Float") end it "raise ArgumentError if non_block = true is passed too" do -- cgit v1.2.3