Skip to content

Commit

Permalink
Fix minor cop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Sep 15, 2023
1 parent 8746867 commit 6161b2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ Style/ClassVars:
Exclude:
- 'test/emails_test.rb'
- 'test/files_test.rb'
- 'test/previews_test.rb'
- 'test/mailer.rb'

# Offense count: 28
Expand Down
2 changes: 1 addition & 1 deletion lib/Mailosaur/models/preview_request.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Mailosaur
module Models
class PreviewRequest < BaseModel
def initialize(email_client, disable_images = false)
def initialize(email_client, disable_images: false)
@email_client = email_client
@disable_images = disable_images
end
Expand Down
2 changes: 1 addition & 1 deletion test/previews_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def startup

result = @@client.messages.generate_previews(email.id, options)

assert_true(result.items.length > 0)
assert_false(result.items.empty)

# Ensure we can download one of the generated preview
file = @@client.files.get_preview(result.items[0].id)
Expand Down

0 comments on commit 6161b2a

Please sign in to comment.