test/download_strategies/abstract_spec: fix test

This commit is contained in:
Michael Cho 2024-12-19 15:27:14 -05:00
parent 4db46eea4e
commit c8d0a1904d
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -12,7 +12,7 @@ RSpec.describe AbstractDownloadStrategy do
let(:args) { %w[foo bar baz] }
specify "#source_modified_time" do
Mktemp.new("mtime") do
mktmpdir("mtime").cd do
FileUtils.touch "foo", mtime: Time.now - 10
FileUtils.touch "bar", mtime: Time.now - 100
FileUtils.ln_s "not-exist", "baz"