Sha256: 0e206b11261ba87c5587c461af9f740c9a4d633bb41913c1ef903d81e92a0aff

Contents?: true

Size: 714 Bytes

Versions: 5

Compression:

Stored size: 714 Bytes

Contents

shared_examples 'is_a_curation_concern_model' do 
  CurationConcern::FactoryHelpers.load_factories_for(self, described_class)

  it 'is registered for classification' do
    expect(Curate.configuration.registered_curation_concern_types).to include(described_class.name)
  end

  describe 'its test support factories', factory_verification: true do
    it {
      expect {
        FactoryGirl.create(default_work_factory_name).destroy
      }.to_not raise_error
    }
    it {
      expect {
        FactoryGirl.create(private_work_factory_name).destroy
      }.to_not raise_error
    }
    it {
      expect {
        FactoryGirl.create(public_work_factory_name).destroy
      }.to_not raise_error
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
curate-0.5.4 spec/support/shared/shared_examples_is_a_curation_concern_model.rb
curate-0.5.2 spec/support/shared/shared_examples_is_a_curation_concern_model.rb
curate-0.5.1 spec/support/shared/shared_examples_is_a_curation_concern_model.rb
curate-0.5.0 spec/support/shared/shared_examples_is_a_curation_concern_model.rb
curate-0.4.2 spec/support/shared/shared_examples_is_a_curation_concern_model.rb