add PDF preview in view for gallery

This commit is contained in:
Lisa Durand 2024-05-07 16:41:20 +02:00 committed by Eric Leroy-Terquem
parent 93c3761107
commit affb1820d8
No known key found for this signature in database
GPG key ID: ECE60B4C1FA2ABB3
9 changed files with 13 additions and 18 deletions

View file

@ -89,11 +89,11 @@ describe ImageProcessorJob, type: :job do
context "when representation is required" do
before do
allow(blob).to receive(:variant_required?).and_return(true)
allow(blob).to receive(:representation_required?).and_return(true)
end
it "it creates blob representation" do
expect { described_class.perform_now(blob) }.to change { ActiveStorage::VariantRecord.count }.by(2)
expect { described_class.perform_now(blob) }.to change { ActiveStorage::VariantRecord.count }.by(1)
end
end
end