Sha256: 8485da1bd7f0cf80b3338c14221be9c52a2c1bbebe71b02ced63048585a3a6e9

Contents?: true

Size: 589 Bytes

Versions: 6

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'

describe Hyrax::RasterWorkForm do
  let(:coverage) { GeoWorks::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

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 spec/forms/hyrax/raster_work_form_spec.rb
geo_works-0.1.4 spec/forms/hyrax/raster_work_form_spec.rb
geo_works-0.1.3 spec/forms/hyrax/raster_work_form_spec.rb
geo_works-0.1.2 spec/forms/hyrax/raster_work_form_spec.rb
geo_works-0.1.1 spec/forms/hyrax/raster_work_form_spec.rb
geo_works-0.1.0 spec/forms/hyrax/raster_work_form_spec.rb