Skip to content

Commit

Permalink
fix: Broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Nov 12, 2024
1 parent db69c23 commit 90829cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_tar_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def test_open_no_block
def test_file_looks_good
Minitar::Output.open(@tarfile) do |os|
NAMES.each do |name|
name = File.join("data__", name)
stat = File.stat(name)
filename = File.join("data__", name)
stat = File.stat(filename)
opts = {size: stat.size, mode: 0o644}
os.tar.add_file_simple(name, opts) do |ss|
File.open(name, "rb") { |ff| ss.write(ff.read(4096)) until ff.eof? }
File.open(filename, "rb") { |ff| ss.write(ff.read(4096)) until ff.eof? }
end
end
end
Expand Down

0 comments on commit 90829cf

Please sign in to comment.