We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 521dbc0 + a014406 commit 7dd76ecCopy full SHA for 7dd76ec
spec/integrations/store_in_background_spec.rb
@@ -31,6 +31,11 @@
31
user.reload
32
end
33
34
+ it 'processes the original image' do
35
+ image = MiniMagick::Image.open(user.avatar.path)
36
+ expect(image.width).to eql(1960)
37
+ end
38
+
39
it 'creates the versions' do
40
version_paths = user.avatar.versions.keys.map { |key| user.avatar.send(key).current_path }
41
version_paths.each { |path| expect(File.exist?(path)).to be(true) }
spec/support/dummy_app/app/uploaders/avatar_uploader.rb
@@ -31,6 +31,7 @@ def cache_dir
# Process files as they are uploaded:
# process scale: [200, 300]
+ process resize_to_fit: [1960, 1960]
#
# def scale(width, height)
# # do something
0 commit comments