Permalink
Browse files

fix wkhtmltopdf path on travis

  • Loading branch information...
fschwahn committed Aug 15, 2012
1 parent bdb95a8 commit 259b52bb86504adf34f33b6b75cf162bbe79d62c
Showing with 2 additions and 1 deletion.
  1. +1 −0 .travis.yml
  2. +1 −1 test/wicked_pdf_test.rb
View
@@ -4,6 +4,7 @@ rvm:
- 1.9.3
before_script: "sudo apt-get install -y wkhtmltopdf"
+env: WKHTMLTOPDF_BIN=/usr/bin/wkhtmltopdf
gemfile:
- gemfiles/2.3.gemfile
View
@@ -1,6 +1,6 @@
require 'test_helper'
-WickedPdf.config = { :exe_path => '/usr/local/bin/wkhtmltopdf' }
+WickedPdf.config = { :exe_path => ENV['WKHTMLTOPDF_BIN'] || '/usr/local/bin/wkhtmltopdf' }
HTML_DOCUMENT = "<html><body>Hello World</body></html>"
# Provide a public accessor to the normally-private parse_options function

0 comments on commit 259b52b

Please sign in to comment.