Sha256: 675246394ea06343d1bd16c8b9bd8cee00276c77eb8710b4f3ca2ef0879ce41e

Contents?: true

Size: 627 Bytes

Versions: 17

Compression:

Stored size: 627 Bytes

Contents

require 'spec_helper'

describe GeotiffDownload do
  let(:document) { SolrDocument.new(layer_slug_s: 'test', layer_id_s: 'stanford-test', solr_bbox: '-180 -90 180 90') }
  let(:download) { GeotiffDownload.new(document) }
  describe '#initialize' do
    it 'should initialize as a GeotiffDownload object with specific options' do
      expect(download).to be_an GeotiffDownload
      options = download.instance_variable_get(:@options)
      expect(options[:content_type]).to eq 'image/geotiff'
      expect(options[:request_params][:layers]).to eq 'stanford-test'
      expect(options[:reflect]).to be_truthy
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geoblacklight-0.7.0 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.6.2 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.6.1 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.6.0 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.5.1 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.5.0 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.4.2 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.4.1 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.4.0 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.3.4 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.3.3 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.3.2 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.3.1 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.3.0 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.2.2 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.2.1 spec/lib/geoblacklight/download/geotiff_download_spec.rb
geoblacklight-0.2.0 spec/lib/geoblacklight/download/geotiff_download_spec.rb