From f6b6a7ad345c50eeb3f7206ceabdf41ba94b7d85 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 21 Feb 2020 12:43:57 +0900 Subject: [PATCH] Show failed times --- spec/ruby/core/process/clock_getres_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/ruby/core/process/clock_getres_spec.rb b/spec/ruby/core/process/clock_getres_spec.rb index 1d5dd7c684..797824f77d 100644 --- a/spec/ruby/core/process/clock_getres_spec.rb +++ b/spec/ruby/core/process/clock_getres_spec.rb @@ -24,7 +24,9 @@ describe "Process.clock_getres" do # The clock should not be less accurate than reported (times should # not all be a multiple of the next precision up, assuming precisions # are multiples of ten.) - times.select { |t| t % (reported * 10) == 0 }.size.should_not == times.size + if times.all? { |t| t % (reported * 10) == 0 } + times.uniq.should be_empty + end end end end