Sha256: 733a6084317240fec5fdbff9aa233bc6920d34ab27b9af5666e739f0728f01e1
Contents?: true
Size: 691 Bytes
Versions: 6
Compression:
Stored size: 691 Bytes
Contents
require 'spec_helper' describe GeoWorks::ExternalMetadataFileForm do before do class TestModel < ActiveFedora::Base def member_of_collection_ids nil end end class TestForm < Hyrax::Forms::WorkForm include GeoWorks::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, 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
6 entries across 6 versions & 1 rubygems