test/keg_relocate/grep_spec.rb: update unit test
This commit is contained in:
parent
a9dd3a76eb
commit
1faa4448bd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user