Increase preview card image size limit from 2MB to 8MB when using libvips (#31904)

This commit is contained in:
Claire authored and GitHub committed 2024-09-14 00:16:02 +00:00
1 parent 5ba3405be4
commit 4b40d13cb3
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -3,6 +3,12 @@
require 'rails_helper'
RSpec.describe PreviewCard do
describe 'file size limit', :attachment_processing do
it 'is set differently whether vips is enabled or not' do
expect(described_class::LIMIT).to eq(Rails.configuration.x.use_vips ? 8.megabytes : 2.megabytes)
end
end
describe 'validations' do
describe 'urls' do
it 'allows http schemes' do