Sha256: fa691a9cd1e29c0e23677b4d4abf74d6658fba5316ce0bcccd86797b0deb3c08

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

#!/usr/bin/ruby -w
# test_latex_document.rb: Unit tests for the pdfmult script.
#
# Copyright (C) 2011-2012 Marcus Stollsteimer

require 'minitest/spec'
require 'minitest/autorun'
require 'pdfmult'


describe Pdfmult::LaTeXDocument do

  it 'should return the expected LaTeX code' do
    document = Pdfmult::LaTeXDocument.new('sample.pdf', 8, 3)
    document.to_s.split(/\n/)[0].must_equal "\\documentclass[a4paper,landscape]{article}"
    document.to_s.split(/\n/)[-2].must_equal "\\includepdf[pages={3,3,3,3,3,3,3,3},nup=4x2]{sample.pdf}%"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pdfmult-1.3.0 test/test_latex_document.rb
pdfmult-1.2.0 test/test_latex_document.rb
pdfmult-1.1.0 test/test_latex_document.rb