test/keg_relocate/grep_spec.rb: update unit test

This commit is contained in:
danielnachun 2022-03-05 19:24:55 -08:00
parent a9dd3a76eb
commit 1faa4448bd
No known key found for this signature in database
GPG Key ID: 7343CCAD07E2D0FB

View File

@ -43,16 +43,15 @@ describe Keg do
end end
end end
describe "#each_unique_binary_file" do describe "#binary_file?" do
specify "find null bytes in binaries" do specify "test if file has null bytes" do
setup_binary_file setup_binary_file
binary_matches = Set.new expect(keg.binary_file?(binary_file)).to be true
keg.each_unique_binary_file do |file|
binary_matches << file
end
expect(binary_matches.size).to eq 1 setup_text_file
expect(keg.binary_file?(text_file)).to be false
end end
end end
end end