Sha256: 5c37e48289b00f3eac0d18ed01334135f3d0116459583b2c4d990a2d4d81351d
Contents?: true
Size: 603 Bytes
Versions: 4
Compression:
Stored size: 603 Bytes
Contents
require 'spec_helper' describe CurationConcerns::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
4 entries across 4 versions & 1 rubygems