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

Version Path
geo_concerns-0.3.4 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.3.3 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.3.2 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.3.1 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.3.0 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.2.0 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.1.1 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.1.0 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.10 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.9 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.8 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.7 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.6 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.5 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.4 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.3 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb
geo_concerns-0.0.2 spec/processors/geo_concerns/processors/vector/shapefile_spec.rb