Skip to content

Commit

Permalink
Update activestorage/test/models/attached/one_test.rb
Browse files Browse the repository at this point in the history
Co-authored-by: yaw <yawboakye@users.noreply.github.com>
  • Loading branch information
xjunior and yawboakye authored Mar 4, 2024
1 parent 19d40a2 commit e131c78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activestorage/test/models/attached/one_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,11 @@ def self.name; superclass.name; end
john.avatar_with_dynamic.attach fixture_file_upload("racecar.jpg")
end

josh_variantion = @user.avatar_with_dynamic.variant(:thumb).variation
john_variantion = john.avatar_with_dynamic.variant(:thumb).variation
josh_variation = @user.avatar_with_dynamic.variant(:thumb).variation
john_variation = john.avatar_with_dynamic.variant(:thumb).variation

assert_equal({ format: "jpg", resize_to_limit: [100, 100] }, josh_variantion.transformations)
assert_equal({ format: "jpg", resize_to_limit: [200, 200] }, john_variantion.transformations)
assert_equal({ format: "jpg", resize_to_limit: [100, 100] }, josh_variation.transformations)
assert_equal({ format: "jpg", resize_to_limit: [200, 200] }, john_variation.transformations)
end

test "raises error when unknown variant name is used to generate variant" do
Expand Down

0 comments on commit e131c78

Please sign in to comment.