test/writer_test.rb in slim2pdf-0.0.2 vs test/writer_test.rb in slim2pdf-0.0.3

- old
+ new

@@ -59,12 +59,17 @@ assert File.exists?(path) File.unlink(path) assert_equal false, File.exists?(path) end + def test_wkhtmltopdf_path + assert_equal 'wkhtmltopdf -q', @writer.wkhtmltopdf_command + @writer.wkhtmltopdf_path = '/test/path/to/wkhtmltopdf' + assert_equal '/test/path/to/wkhtmltopdf -q', @writer.wkhtmltopdf_command + end + def test_wkhtmltopdf_command - assert_match /wkhtmltopdf/, @writer.wkhtmltopdf_command - assert_match /-q/, @writer.wkhtmltopdf_command + assert_equal 'wkhtmltopdf -q', @writer.wkhtmltopdf_command @writer.wkhtmltopdf_command = 'test -a -b -c' assert_equal 'test -a -b -c', @writer.wkhtmltopdf_command end def test_footer_params