Sha256: f82aa2ee467ee79d3d7b8e280f3bd03511f243bd0c517ab0be44a35a85c46da9
Contents?: true
Size: 702 Bytes
Versions: 24
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe KmzDownload 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) { KmzDownload.new(document) } describe '#initialize' do it 'should initialize as a KmzDownload object with specific options' do expect(download).to be_an KmzDownload options = download.instance_variable_get(:@options) expect(options[:content_type]).to eq 'application/vnd.google-earth.kmz' expect(options[:request_params][:layers]).to eq 'stanford-test' expect(options[:request_params][:bbox]).to eq '-180, -90, 180, 90' end end end
Version data entries
24 entries across 24 versions & 1 rubygems