Sha256: e4dfc37d5d575c6c6e9c3c56720d4e0b5661301d0a313f2164d1448d32999aa9

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

$:.unshift File.expand_path("../..", __FILE__)

require 'mail_extract'

def fixture_path(file=nil)
  path = File.expand_path("../fixtures", __FILE__)
  path = File.join(path, file) unless file.nil?
  path
end

def fixture(file)
  File.read(File.join(fixture_path, file))
end

def result_fixture(file)
  fixture("result_#{file}")
end

def parse_fixture(file)
  MailExtract.new(fixture(file)).body
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mail_extract-0.1.4 spec/spec_helper.rb
mail_extract-0.1.3 spec/spec_helper.rb