зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Use dedicated assertion methods
For better messages at failures. https://github.com/rubygems/rubygems/commit/971455b16e
This commit is contained in:
Родитель
f8104d9e9f
Коммит
39e8d5e1cd
|
@ -140,12 +140,12 @@ class TestGemPackage < Gem::Package::TarTestCase
|
|||
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче