2019-07-25 01:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-02-05 04:57:14 -05:00
|
|
|
RSpec::Matchers.define :match_file do |expected|
|
|
|
|
match do |actual|
|
2022-06-27 11:09:33 -04:00
|
|
|
expect(Digest::SHA256.hexdigest(actual)).to eq(Digest::SHA256.hexdigest(File.read(expected)))
|
2017-02-05 04:57:14 -05:00
|
|
|
end
|
|
|
|
end
|