Sha256: c5136bf7cf16a7c644f5ecbee60496974908171567b9cf6b1775aa0c384092af

Contents?: true

Size: 259 Bytes

Versions: 14

Compression:

Stored size: 259 Bytes

Contents

RSpec::Matchers.define(:be_same_file_as) do |exected_file_path|
  match do |actual_file_path|
    expect(md5_hash(actual_file_path)).to eq(md5_hash(exected_file_path))
  end

  def md5_hash(file_path)
    Digest::MD5.hexdigest(File.read(file_path))
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ruby_danfe-1.15.4 spec/support/be_same_file_as.rb
ruby_danfe-1.15.2 spec/support/be_same_file_as.rb
ruby_danfe-1.15.1 spec/support/be_same_file_as.rb
ruby_danfe-1.15.0 spec/support/be_same_file_as.rb
ruby_danfe-1.13.2 spec/support/be_same_file_as.rb
br_danfe-0.0.8 spec/support/be_same_file_as.rb
br_danfe-0.0.7 spec/support/be_same_file_as.rb
br_danfe-0.0.6 spec/support/be_same_file_as.rb
br_danfe-0.0.5 spec/support/be_same_file_as.rb
br_danfe-0.0.4 spec/support/be_same_file_as.rb
br_danfe-0.0.3 spec/support/be_same_file_as.rb
ruby_danfe-1.11.5 spec/support/be_same_file_as.rb
br_danfe-0.0.2 spec/support/be_same_file_as.rb
br_danfe-0.0.1 spec/support/be_same_file_as.rb