Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.561 kb
# -- 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
Jump to Line
Something went wrong with that request. Please try again.