Sha256: c09ca4cf4c39b7c1fc4a44677afbd3bbe8d9525fe96d1267f764e3d9b358fff4
Contents?: true
Size: 673 Bytes
Versions: 7
Compression:
Stored size: 673 Bytes
Contents
require 'spec_helper' module Ddr::Derivatives RSpec.describe PngGenerator do describe "generate" do let(:tempdir) { Dir.mktmpdir } let(:output_path) { File.join(tempdir, "output.png") } let(:options) { "-resize '100x100>'" } let(:generator) { described_class.new(options) } after { FileUtils.rmdir(tempdir) } context "tiff source" do let(:source_path) { File.join(Ddr::Models::Engine.root, "spec", "fixtures", "imageA.tif") } it "should generate a non-empty file" do generator.generate(source_path, output_path) expect(File.size(output_path)).to be > 0 end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems