Sha256: dbc4a521daff609275bc87d0437372c5701bd39be5fe8e663a215dc331f9e828
Contents?: true
Size: 338 Bytes
Versions: 12
Compression:
Stored size: 338 Bytes
Contents
require 'rspec/expectations' # Not quite sure what the usage is for this yet? RSpec::Matchers.define(:be_same_file_as) do |exected_file_path| match do |actual_file_path| md5_hash(actual_file_path).should == md5_hash(exected_file_path) end def md5_hash(file_path) Digest::MD5.hexdigest(File.read(file_path)) end end
Version data entries
12 entries across 12 versions & 1 rubygems