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