ruby-changes:58127
From: Nobuyoshi <ko1@a...>
Date: Sat, 5 Oct 2019 10:52:06 +0900 (JST)
Subject: [ruby-changes:58127] 39e8d5e1cd (master): [rubygems/rubygems] Use dedicated assertion methods
https://git.ruby-lang.org/ruby.git/commit/?id=39e8d5e1cd From 39e8d5e1cdc25ca17f74da5e72ba87dcdfa4a602 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 26 Sep 2019 19:47:22 +0900 Subject: [rubygems/rubygems] Use dedicated assertion methods For better messages at failures. https://github.com/rubygems/rubygems/commit/971455b16e diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb index 7069b62..0604a2c 100644 --- a/test/rubygems/test_gem_package.rb +++ b/test/rubygems/test_gem_package.rb @@ -140,12 +140,12 @@ class TestGemPackage < Gem::Package::TarTestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_package.rb#L140 end_time = Time.now.utc.to_i - assert package.build_time.is_a?(Time) + assert_kind_of Time, package.build_time build_time = package.build_time.to_i - assert(start_time <= build_time) - assert(build_time <= end_time) + assert_operator(start_time, :<=, build_time) + assert_operator(build_time, :<=, end_time) ensure ENV["SOURCE_DATE_EPOCH"] = epoch end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/