Sha256: 0f9f1cf53807c2cd489775bd5d89f4df18a2dbb23c3278d0878e1259bbf157c9
Contents?: true
Size: 907 Bytes
Versions: 10
Compression:
Stored size: 907 Bytes
Contents
require 'spec_helper' describe Geoblacklight::GeotiffDownload do let(:document) { SolrDocument.new(layer_slug_s: 'test', layer_id_s: 'stanford-test', solr_geom: 'ENVELOPE(-180, 180, 90, -90)') } let(:download) { Geoblacklight::GeotiffDownload.new(document) } describe '#initialize' do it 'should initialize as a GeotiffDownload object with specific options' do expect(download).to be_an Geoblacklight::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 it 'should merge custom options' do download = Geoblacklight::GeotiffDownload.new(document, timeout: 33) options = download.instance_variable_get(:@options) expect(options[:timeout]).to eq 33 end end end
Version data entries
10 entries across 10 versions & 1 rubygems