Skip to content

Commit

Permalink
テストコード内で定義した定数か、モジュールで定義した定数か判断しづらいのでハードコーディングに戻した
Browse files Browse the repository at this point in the history
  • Loading branch information
wata00913 committed Jun 20, 2023
1 parent 81dc2a5 commit d5ec602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/ogp/image/attachment_processor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AttachmentProcessorTest < ActiveSupport::TestCase
AttachmentProcessor.fit_to_size(article.thumbnail)

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

0 comments on commit d5ec602

Please sign in to comment.