Sha256: 65c84c0a680ff9eafe4a1d874ceafa57299d2c4cd7d4dd379650dce719097fc6
Contents?: true
Size: 685 Bytes
Versions: 6
Compression:
Stored size: 685 Bytes
Contents
require 'spec_helper' RSpec.describe Riiif::ImagemagickCommandFactory do let(:path) { 'foo.tiff' } describe '.build' do subject { described_class.build(path, transformation) } let(:transformation) do Riiif::Transformation.new('region', 'size', 'quality', 'rotation', format) end context "when it's a jpeg" do let(:format) { 'jpg' } it { is_expected.to match(/-quality 85/) } end context "when it's a tiff" do let(:format) { 'tif' } it { is_expected.not_to match(/-quality/) } end end end
Version data entries
6 entries across 6 versions & 1 rubygems