Sha256: c49dc033efeeb0c6c745a466f379e4cf61882c73ed15d92c53b5bbb13325492c

Contents?: true

Size: 531 Bytes

Versions: 6

Compression:

Stored size: 531 Bytes

Contents

require 'spec_helper'

describe GeoWorks::RasterFormatService do
  subject { described_class }

  it 'has select_options' do
    expect(subject.select_options).to eq([['GeoTIFF', 'image/tiff; gdal-format=GTiff'], ['Arc/Info ASCII Grid', 'text/plain; gdal-format=AAIGrid'], ['Arc/Info Binary Grid', 'application/octet-stream; gdal-format=AIG'], ['USGS ASCII DEM', 'text/plain; gdal-format=USGSDEM']])
  end

  it 'looks up a label for a term' do
    expect(subject.label('image/tiff; gdal-format=GTiff')).to eq('GeoTIFF')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 spec/services/geo_works/raster_format_service_spec.rb
geo_works-0.1.4 spec/services/geo_works/raster_format_service_spec.rb
geo_works-0.1.3 spec/services/geo_works/raster_format_service_spec.rb
geo_works-0.1.2 spec/services/geo_works/raster_format_service_spec.rb
geo_works-0.1.1 spec/services/geo_works/raster_format_service_spec.rb
geo_works-0.1.0 spec/services/geo_works/raster_format_service_spec.rb