Skip to content

Commit

Permalink
adds test case for jkraemer#56
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraemer committed Sep 6, 2018
1 parent c4c37cc commit 67e1b77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/pdftk_wrapper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ def test_cat_documents
FileUtils.rm 'output.pdf'
end

def test_cat_documents_remove_page
@pdftk.cat({'test/fixtures/form.pdf' => ["1-2", "4-5"]}, 'output.pdf')
assert File.size('output.pdf') > 0
FileUtils.rm 'output.pdf'
end

def test_cat_documents_page_ranges
@pdftk.cat({'test/fixtures/form.pdf' => ["1-2", "4-5"]}, 'test/fixtures/one.pdf', {'test/fixtures/two.pdf' => ["1"]}, 'output.pdf')
assert File.size('output.pdf') > 0
Expand Down

0 comments on commit 67e1b77

Please sign in to comment.