Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 34 lines (28 sloc) 0.561 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
# -- encoding: utf-8 --
require 'mini_exiftool'
require 'test/unit'
require 'fileutils'
require 'tempfile'
begin
  require 'turn'
rescue LoadError
  begin
    require 'rubygems'
    require 'turn'
  rescue LoadError
  end
end

include Test::Unit

module TempfileTest
  def setup
    @temp_file = Tempfile.new('test')
    @temp_filename = @temp_file.path
    @data_dir = File.dirname(__FILE__) + '/data'
  end

  def teardown
    @temp_file.close
  end

  def assert_md5 md5, filename
    assert_equal md5, Digest::MD5.hexdigest(File.read(filename))
  end

end
Something went wrong with that request. Please try again.