Sha256: 543448631072423ec64ce84134fbc56f5d95f5a95409a995e9d05e995fd3ee12

Contents?: true

Size: 803 Bytes

Versions: 18

Compression:

Stored size: 803 Bytes

Contents

require 'spec_helper'

describe GeoConcerns::GeoreferencedForm do
  before do
    class TestModel < ActiveFedora::Base
      property :cartographic_projection,
               predicate: ::RDF::URI.new('http://bibframe.org/vocab/cartographicProjection'),
               multiple: false
    end

    class TestForm < CurationConcerns::Forms::WorkForm
      include GeoConcerns::GeoreferencedForm
      self.model_class = TestModel
    end
  end

  after do
    Object.send(:remove_const, :TestForm)
    Object.send(:remove_const, :TestModel)
  end

  let(:object) { TestModel.new(cartographic_projection: 'urn:ogc:def:crs:EPSG:6.3:26986') }
  let(:form) { TestForm.new(object, nil) }

  describe '.terms' do
    subject { form.terms }
    it { is_expected.to include(:cartographic_projection) }
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.3.3 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.3.2 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.3.1 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.3.0 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.2.0 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.1.1 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.1.0 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.10 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.9 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.8 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.7 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.6 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.5 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.4 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.3 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.2 spec/forms/geo_concerns/georeferenced_form_spec.rb
geo_concerns-0.0.1 spec/forms/geo_concerns/georeferenced_form_spec.rb