Sha256: 6a560b25306f1ab5279be1252df7f9d1aee5ec6150c61a7c0f3e4453201acb08
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 Bytes
Contents
require 'spec_helper' describe CurationConcerns::DerivativePath do before do allow(CurationConcerns.config).to receive(:derivatives_path).and_return('tmp') end describe '.derivative_path_for_reference' do subject { described_class.derivative_path_for_reference(object, destination_name) } let(:object) { double(id: '123') } let(:destination_name) { 'thumbnail' } it { is_expected.to eq 'tmp/12/3-thumbnail.jpeg' } end end
Version data entries
4 entries across 4 versions & 1 rubygems