diff --git a/lib/weasyprint/weasyprint.rb b/lib/weasyprint/weasyprint.rb index f6480313..2d76ed84 100644 --- a/lib/weasyprint/weasyprint.rb +++ b/lib/weasyprint/weasyprint.rb @@ -27,7 +27,7 @@ def initialize(url_file_or_html, options = {}) @options = WeasyPrint.configuration.default_options.merge(options) @options = normalize_options(@options) - raise NoExecutableError.new unless File.exists?(WeasyPrint.configuration.weasyprint) + raise NoExecutableError.new unless File.exist?(WeasyPrint.configuration.weasyprint) end def command(path = nil)