Sha256: 71a00c73a939bdea225ffe5e69b2e9f01f8dd2c2cd5c462791c0ebac7c7a8203
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
Contents
shared_examples 'is_a_curation_concern_model' do CurationConcern::FactoryHelpers.load_factories_for(self, described_class) it 'is registered for classification' do expect(Worthwhile.configuration.registered_curation_concern_types).to include(described_class.name) end context 'behavior' do subject { FactoryGirl.build(default_work_factory_name) } it 'can be cast as an RDF object' do expect(subject.as_rdf_object).to be_kind_of RDF::URI end end context 'collectibility' do subject { FactoryGirl.build(default_work_factory_name) } let(:collection) { double } it '#can_be_member_of_collection?' do expect(subject.can_be_member_of_collection?(collection)).to eq(true) end end context 'its test support factories', factory_verification: true do it { expect { FactoryGirl.create(default_work_factory_name) }.to_not raise_error } it { expect { FactoryGirl.create(private_work_factory_name) }.to_not raise_error } it { expect { FactoryGirl.create(public_work_factory_name) }.to_not raise_error } end end
Version data entries
6 entries across 6 versions & 1 rubygems