Skip to content

Commit

Permalink
Rename the variable
Browse files Browse the repository at this point in the history
It is not an empty gzipped data, a gzipped empty dump data.
  • Loading branch information
nobu committed Apr 1, 2024
1 parent 70645a5 commit b50c4dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/rubygems/test_gem_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def test_dependency_resolver_set_bundler_api
end

def test_dependency_resolver_set_file_uri
empty_gzip = Gem::Util.gzip("\x04\x08[\x05".b)
File.binwrite(File.join(@tempdir, "prerelease_specs.4.8.gz"), empty_gzip)
File.binwrite(File.join(@tempdir, "specs.4.8.gz"), empty_gzip)
empty_dump = Gem::Util.gzip("\x04\x08[\x05".b)
File.binwrite(File.join(@tempdir, "prerelease_specs.4.8.gz"), empty_dump)
File.binwrite(File.join(@tempdir, "specs.4.8.gz"), empty_dump)

source = Gem::Source.new "file://#{@tempdir}/"

Expand Down

0 comments on commit b50c4dc

Please sign in to comment.