Sha256: ab2816eb5486febe580c78c360fcb98e3373825d4d31cfbd64a70c5319505cfb
Contents?: true
Size: 561 Bytes
Versions: 17
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' describe GeoConcerns::Processors::Vector::Shapefile do let(:output_file) { 'output/geo.png' } let(:file_name) { 'files/Shapefile.zip' } let(:options) { { output_size: '150 150', label: :thumbnail } } subject { described_class.new(file_name, {}) } describe '#encode' do it 'wraps encode vector method in an unzip block' do allow(subject.class).to receive(:unzip).and_yield(file_name) expect(subject.class).to receive(:encode_vector) subject.class.encode(file_name, options, output_file) end end end
Version data entries
17 entries across 17 versions & 1 rubygems