add PDF preview in view for gallery
This commit is contained in:
parent
93c3761107
commit
affb1820d8
9 changed files with 13 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue