Sha256: d935d486a9ee5f314044c0135ff58df4a7e36054a8226be232f799ce2dcfc6b7
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
require 'spec_helper' describe GenericWork do subject { FactoryGirl.build(:generic_work) } it_behaves_like 'with_access_rights' it_behaves_like 'with_related_works' it_behaves_like 'is_embargoable' it_behaves_like 'has_dc_metadata' it_behaves_like 'has_common_solr_fields' it_behaves_like 'doi_assignable' it { should have_unique_field(:available) } it { should have_unique_field(:human_readable_type) } context '#rights' do it 'has a default value' do GenericWork.new.rights.should == 'All rights reserved' end end context '#as_json' do it 'returns the human readable type' do subject.as_json({})[:curation_concern_type].should == subject.human_readable_type end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
curate-0.5.1 | spec/repository_models/generic_work_spec.rb |
curate-0.5.0 | spec/repository_models/generic_work_spec.rb |
curate-0.4.2 | spec/repository_models/generic_work_spec.rb |