Sha256: fc21a248e10934301444b4d58c0df6c764583fae857f4135f7dcea7f89c3d44e
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
require 'spec_helper' describe GeoConcerns::Processors::Raster::Aig do let(:output_file) { 'output/geo.png' } let(:file_name) { 'files/aig.zip' } let(:options) { { output_format: 'PNG', output_size: '150 150', min_max: '2.054 11.717', label: :thumbnail } } subject { described_class.new(file_name, {}) } describe '#translate' do it 'returns a gdal_translate command with scaling' do expect(subject.class.translate(file_name, options, output_file)) .to include('-scale 2.054 11.717 255 0') end end describe '#encode' do it 'wraps encode_raster in an unzip block' do allow(subject.class).to receive(:unzip).and_yield(file_name) expect(subject.class).to receive(:encode_raster) subject.class.encode(file_name, options, output_file) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geo_concerns-0.0.1 | spec/processors/geo_concerns/processors/raster/aig_spec.rb |