Sha256: 7b37f5d37b6c6cf5a7e532c30fc060e7f54268f2ed82aba68eee2a72a2e66df7

Contents?: true

Size: 781 Bytes

Versions: 11

Compression:

Stored size: 781 Bytes

Contents

require 'spec_helper'

describe GeoConcerns::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

11 entries across 11 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.3.3 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.3.2 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.3.1 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.3.0 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.2.0 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.1.1 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.1.0 spec/services/geo_concerns/derivative_path_spec.rb
geo_concerns-0.0.10 spec/services/derivative_path_spec.rb
geo_concerns-0.0.9 spec/services/derivative_path_spec.rb
geo_concerns-0.0.8 spec/services/derivative_path_spec.rb