Skip to content

Commit

Permalink
テストコードを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
wata00913 committed Jun 19, 2023
1 parent 4827caa commit 81dc2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/ogp/image/attachment_processor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class AttachmentProcessorTest < ActiveSupport::TestCase
test '.fit_to_size' do
article = articles(:article4)

Ogp::Image::AttachmentProcessor.fit_to_size(article.thumbnail)
AttachmentProcessor.fit_to_size(article.thumbnail)

article.thumbnail.blob.analyze unless article.thumbnail.blob.analyzed?
assert_equal({ width: 1200, height: 630 },
assert_equal({ width: WIDTH, height: HEIGHT },
article.thumbnail.blob.metadata.slice(:width, :height).symbolize_keys)
end
end
Expand Down

0 comments on commit 81dc2a5

Please sign in to comment.