Sha256: 0ecf24706e56f61bd13bfee344764526e8744ab66f504e536c45f11beda6ba70
Contents?: true
Size: 598 Bytes
Versions: 3
Compression:
Stored size: 598 Bytes
Contents
# Generated via # `rails generate active_fedora::model <%= class_name %>` require 'spec_helper' require 'active_fedora/test_support' describe <%= class_name %> do include ActiveFedora::TestSupport subject { <%= class_name %>.new } it 'should persist to Fedora' do subject.save! expect { subject.reload }.to_not raise_error(ActiveFedora::ObjectNotFoundError) subject.destroy end it 'should have a descMetadata datastream' do subject.descMetadata.should be_kind_of <%= options['descMetadata'] ? options['descMetadata'] : "#{class_name}Metadata" %> end end
Version data entries
3 entries across 3 versions & 1 rubygems