Sha256: ef845d3f44d227a27b5f11899c5c2065e6c5d2f8074124ab5777aba1ede798a0

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

# -*- coding: utf-8 -*-
require File.expand_path( File.join(File.dirname(__FILE__), '..', 'spec_helper') )

describe 'MD5' do

  before do
    @file_name = File.expand_path( File.join( File.dirname(__FILE__), "..", "..", "lib", "tree_rb", "extension_digest.rb" ) )
  end

  it 'should calculate md5' do
    expect(MD5.file( @file_name ).to_s).to be == 'b33c6b70109037fc02686f8babfc2db4'
  end

  it 'should calculate sha1' do
    expect(SHA1.file( @file_name ).to_s).to be == 'f99700dbdd200d7255f586ceb0cac05e05871cc5'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tree.rb-0.3.13 spec/tree_rb/extension_digest_spec.rb