Sha256: e075dd95d58781b8585c94b698944fcaabdd14cc3745155e6e31a0664ab218cc

Contents?: true

Size: 775 Bytes

Versions: 6

Compression:

Stored size: 775 Bytes

Contents

require 'spec_helper'

describe Hyrax::DerivativePath do
  subject { described_class.derivative_path_for_reference('12', destination_name) }
  describe '#extension' do
    context 'with thumbnail destination' do
      let(:destination_name) { 'thumbnail' }
      it { is_expected.to include('.jpeg') }
    end

    context 'with display_raster destination' do
      let(:destination_name) { 'display_raster' }
      it { is_expected.to include('.tif') }
    end

    context 'with display_vector destination' do
      let(:destination_name) { 'display_vector' }
      it { is_expected.to include('.zip') }
    end

    context 'with simplified destination' do
      let(:destination_name) { 'simplified' }
      it { is_expected.to include('.simplified') }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 spec/services/hyrax/derivative_path_spec.rb
geo_works-0.1.4 spec/services/hyrax/derivative_path_spec.rb
geo_works-0.1.3 spec/services/hyrax/derivative_path_spec.rb
geo_works-0.1.2 spec/services/hyrax/derivative_path_spec.rb
geo_works-0.1.1 spec/services/hyrax/derivative_path_spec.rb
geo_works-0.1.0 spec/services/hyrax/derivative_path_spec.rb