Sha256: 7265a491769957701d10e245df4f1690720c8d9d3dbb4fd50f708434fb30c729

Contents?: true

Size: 598 Bytes

Versions: 8

Compression:

Stored size: 598 Bytes

Contents

require 'spec_helper'

describe GeoConcerns::VectorWorkForm 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

8 entries across 8 versions & 1 rubygems

Version Path
geo_concerns-0.3.0 spec/forms/geo_concerns/vector_work_form_spec.rb
geo_concerns-0.2.0 spec/forms/geo_concerns/vector_work_form_spec.rb
geo_concerns-0.1.1 spec/forms/geo_concerns/vector_work_form_spec.rb
geo_concerns-0.1.0 spec/forms/geo_concerns/vector_work_form_spec.rb
geo_concerns-0.0.10 spec/forms/geo_concerns/vector_work_form_spec.rb
geo_concerns-0.0.9 spec/forms/geo_concerns/vector_work_form_spec.rb
geo_concerns-0.0.8 spec/forms/geo_concerns/vector_work_form_spec.rb
geo_concerns-0.0.7 spec/forms/geo_concerns/vector_work_form_spec.rb