Sha256: 721370f9d9afa998bb2573db9dfb0315e66f3de4707a3741fb0f2a6ec068da88
Contents?: true
Size: 579 Bytes
Versions: 9
Compression:
Stored size: 579 Bytes
Contents
require 'spec_helper' describe HglDownload do let(:document) { SolrDocument.new(layer_slug_s: 'test', layer_id_s: 'cite:harvard-test') } let(:download) { HglDownload.new(document, 'foo@example.com') } describe '#initialize' do it 'should initialize as an HglDownload object with specific options' do expect(download).to be_an HglDownload options = download.instance_variable_get(:@options) expect(options[:request_params]['LayerName']).to eq 'harvard-test' expect(options[:request_params]['UserEmail']).to eq 'foo@example.com' end end end
Version data entries
9 entries across 9 versions & 1 rubygems