Sha256: 4152aa83c08632d5cbfab6fba37f774736d687dc218f76b361de3a14f71fab99

Contents?: true

Size: 716 Bytes

Versions: 2

Compression:

Stored size: 716 Bytes

Contents

require 'rubygems'
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

#require 'test/unit'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'erb_latex'

class MiniTest::Test

    def document( name )
        File.expand_path(File.join(File.dirname(__FILE__), "fixtures/#{name}.tex.erb"))
    end

    def tmp_output_file
        File.expand_path( File.join( File.dirname(__FILE__), "tmp/output.pdf") )
    end


    def text_output
        `pdftotext #{tmp_output_file} -`
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erb_latex-0.2.0 test/helper.rb
erb_latex-0.0.1 test/helper.rb