Sha256: 6dbd015c418b91d4b5c5231362356fc3a7a99bfe72f6621bfbc54fe4e1f16669

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

require 'spec_helper'

describe CurationConcerns::RasterWorkForm do
  let(:coverage) { GeoConcerns::Coverage.new(43.039, -69.856, 42.943, -71.032) }
  let(:raw_attributes) { ActionController::Parameters.new(
    coverage: coverage.to_s,
    cartographic_projection: 'urn:ogc:def:crs:EPSG:6.3:26986')
  }

  describe '.model_attributes' do
    subject { described_class.model_attributes(raw_attributes) }
    it 'has the correct attributes' do
      expect(subject['coverage']).to eq coverage.to_s
      expect(subject['cartographic_projection']).to eq 'urn:ogc:def:crs:EPSG:6.3:26986'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 spec/forms/curation_concerns/raster_work_form_spec.rb
geo_concerns-0.3.3 spec/forms/curation_concerns/raster_work_form_spec.rb
geo_concerns-0.3.2 spec/forms/curation_concerns/raster_work_form_spec.rb
geo_concerns-0.3.1 spec/forms/curation_concerns/raster_work_form_spec.rb