1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/testing/ruby-hoe/fix-tests.patch
2025-07-06 18:48:48 +02:00

12 lines
502 B
Diff

--- a/test/test_hoe.rb 2024-06-24 14:10:47.000000000 -0400
+++ b/test/test_hoe.rb 2025-06-03 22:34:56.059504840 -0400
@@ -385,7 +385,8 @@
assert_equal ">= 0", spec.required_rubygems_version.to_s
assert_equal ["author"], spec.authors
- assert_equal t, spec.date
+ assert spec.date.is_a?(Time)
+ assert (spec.date.to_date - Date.today).abs <= 1
assert_match(/Hoe.*Rakefiles/, spec.description)
assert_equal ["email"], spec.email
assert_equal ["sow"], spec.executables