Skip to content

Commit

Permalink
Merge pull request #237 from ifad/chore/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
tagliala committed Apr 23, 2024
2 parents 0f79344 + c88e5ed commit cfd5574
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/heathen/converter.rb
Expand Up @@ -11,7 +11,7 @@ def initialize( logger: Logger.new(nil) )
# Converts the given document according to the action requested.
# @param action [String] the conversion action to perform
# @param content [String] the document body to be converted
# @param language [String] the document langauge (defaults to 'en')
# @param language [String] the document language (defaults to 'en')
# @return [String] the converted document body
def convert action, content, language='en'
job = Job.new action, content, language
Expand Down
2 changes: 1 addition & 1 deletion lib/heathen/processor_methods/wkhtmltopdf.rb
Expand Up @@ -28,7 +28,7 @@ def _wkhtmltopdf_options(content)
value = if meta.attributes.key?('content')
unless (v = meta.attributes['content'].value.strip).size.zero?
# Some wkhtmltopdf command line options such as `--custom-header KEY VALUE` allows for 2 values as params
# instead of the regular 1 param. In that case the meta content is splitted by `;` delimiter
# instead of the regular 1 param. In that case the meta content is split by `;` delimiter
# https://wkhtmltopdf.org/usage/wkhtmltopdf.txt
#
# Ex:
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/autoheathen/email_processor_spec.rb
Expand Up @@ -34,7 +34,7 @@
expect(mail.from).to eq email.from
expect(mail.to).to eq [to_address]
expect(mail.subject).to eq "Fwd: Convert: please"
expect(mail.attachments.size).to eq 2 # includes unconvertable attachment
expect(mail.attachments.size).to eq 2 # includes unconvertible attachment
expect(mail.attachments.map(&:filename)).to match_array %w[ test1.doc quickfox.pdf ]
expect(mail.delivery_method.settings[:port]).to eq 25
expect(mail.delivery_method.settings[:address]).to eq 'localhost'
Expand All @@ -54,7 +54,7 @@
expect(mail.from).to eq ['noreply@ifad.org']
expect(mail.to).to eq email.from
expect(mail.subject).to eq "Re: Fwd: Convert: please"
expect(mail.attachments.size).to eq 1 # does not include unconvertable attachment
expect(mail.attachments.size).to eq 1 # does not include unconvertible attachment
expect(mail.text_part.decoded.size).to be > 0
expect(mail.html_part.decoded.size).to be > 0
expect(mail.delivery_method.settings[:port]).to eq 25
Expand Down

0 comments on commit cfd5574

Please sign in to comment.