Sha256: c99328e067f6ee1a2ad256c835d4137bef3915ef29acefbfee033a0a824cb14e

Contents?: true

Size: 558 Bytes

Versions: 6

Compression:

Stored size: 558 Bytes

Contents

require 'spec_helper'

describe GeoWorks::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

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 spec/processors/geo_works/processors/vector/shapefile_spec.rb
geo_works-0.1.4 spec/processors/geo_works/processors/vector/shapefile_spec.rb
geo_works-0.1.3 spec/processors/geo_works/processors/vector/shapefile_spec.rb
geo_works-0.1.2 spec/processors/geo_works/processors/vector/shapefile_spec.rb
geo_works-0.1.1 spec/processors/geo_works/processors/vector/shapefile_spec.rb
geo_works-0.1.0 spec/processors/geo_works/processors/vector/shapefile_spec.rb