fix gzip spec

This commit is contained in:
Eliott Appleford 2014-07-06 04:02:43 +01:00
parent 5897c4c4a4
commit 21c2b737f5
2 changed files with 5 additions and 3 deletions

View file

@ -71,3 +71,7 @@ end
Then /^the file "([^"]*)" should contain '([^']*)'$/ do |file, partial_content|
check_file_content(file, partial_content, true)
end
And /(.*) should be binary/ do |file|
expect(File.binread(File.join(current_dir, file), 2)).to eq(['1F8B'].pack('H*'))
end