Sha256: aed4021d8788e1f7003a961faea51e44f3f2feb358af4a5c0c886dfd7f2633ef
Contents?: true
Size: 849 Bytes
Versions: 6
Compression:
Stored size: 849 Bytes
Contents
require 'spec_helper' describe GeoWorks::GeoreferencedForm do before do class TestModel < ActiveFedora::Base property :cartographic_projection, predicate: ::RDF::URI.new('http://bibframe.org/vocab/cartographicProjection'), multiple: false def member_of_collection_ids nil end end class TestForm < Hyrax::Forms::WorkForm include GeoWorks::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, nil) } describe '.terms' do subject { form.terms } it { is_expected.to include(:cartographic_projection) } end end
Version data entries
6 entries across 6 versions & 1 rubygems