Sha256: 2ad7351a72c9759756bcb4f5e1eb89ffe870666505e5a040dae60c1831fe5fa5

Contents?: true

Size: 521 Bytes

Versions: 4

Compression:

Stored size: 521 Bytes

Contents

require 'spec_helper'

describe 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

4 entries across 4 versions & 1 rubygems

Version Path
geo_concerns-0.0.4 spec/services/raster_format_service_spec.rb
geo_concerns-0.0.3 spec/services/raster_format_service_spec.rb
geo_concerns-0.0.2 spec/services/raster_format_service_spec.rb
geo_concerns-0.0.1 spec/services/raster_format_service_spec.rb