Sha256: e0aa80a5c3018549cefcd16648c49ccbb09fa69dfe3de932ad6eaae43898f7d0

Contents?: true

Size: 646 Bytes

Versions: 18

Compression:

Stored size: 646 Bytes

Contents

require 'spec_helper'

describe GeoConcerns::ExternalMetadataFileForm do
  before do
    class TestModel < ActiveFedora::Base
    end

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

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

  let(:object) { TestModel.new }
  let(:form) { TestForm.new(object, nil) }

  describe '.triggers' do
    it 'has should_populate_metadata trigger attribute' do
      expect(form.respond_to?(:should_populate_metadata)).to be_truthy
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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