Sha256: 52ecef0654fd9688c1104fdf901130559321b3f0b7d2c0c5ad3b2f2f34d79b9f
Contents?: true
Size: 638 Bytes
Versions: 24
Compression:
Stored size: 638 Bytes
Contents
require 'spec_helper' describe ShapefileDownload do let(:document) { SolrDocument.new(layer_slug_s: 'test', solr_wfs_url: 'http://www.example.com/wfs', layer_id_s: 'stanford-test', solr_bbox: '-180 -90 180 90') } let(:download) { ShapefileDownload.new(document) } describe '#initialize' do it 'should initialize as a ShapefileDownload object with specific options' do expect(download).to be_an ShapefileDownload options = download.instance_variable_get(:@options) expect(options[:content_type]).to eq 'application/zip' expect(options[:request_params][:typeName]).to eq 'stanford-test' end end end
Version data entries
24 entries across 24 versions & 1 rubygems