Sha256: c5b40686c05da87f0338e63158b552aa73c99d832d0a2f765a3d92bb5acccdeb

Contents?: true

Size: 664 Bytes

Versions: 19

Compression:

Stored size: 664 Bytes

Contents

module CurationConcern
  module FactoryHelpers
    module_function
    def load_factories_for(context, klass)
      context.instance_exec(klass) do |curation_concern_class|
        let(:curation_concern_type_underscore) { curation_concern_class.name.underscore }
        let(:default_work_factory_name) { curation_concern_type_underscore }
        let(:default_work_factory_name_with_files) { "#{default_work_factory_name}_with_files".to_sym }
        let(:private_work_factory_name) { "private_#{curation_concern_type_underscore}".to_sym }
        let(:public_work_factory_name) { "public_#{curation_concern_type_underscore}".to_sym }
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
worthwhile-0.1.2 spec/support/curation_concern/factory_helpers.rb
worthwhile-0.1.1 spec/support/curation_concern/factory_helpers.rb
worthwhile-0.1.0 spec/support/curation_concern/factory_helpers.rb
worthwhile-0.0.3 spec/support/curation_concern/factory_helpers.rb
worthwhile-0.0.2 spec/support/curation_concern/factory_helpers.rb
worthwhile-0.0.1 spec/support/curation_concern/factory_helpers.rb
curate-0.6.6 spec/support/curation_concern/factory_helpers.rb
curate-0.6.5 spec/support/curation_concern/factory_helpers.rb
curate-0.6.4 spec/support/curation_concern/factory_helpers.rb
curate-0.6.3 spec/support/curation_concern/factory_helpers.rb
curate-0.6.1 spec/support/curation_concern/factory_helpers.rb
curate-0.6.0 spec/support/curation_concern/factory_helpers.rb
curate-0.5.6 spec/support/curation_concern/factory_helpers.rb
curate-0.5.5 spec/support/curation_concern/factory_helpers.rb
curate-0.5.4 spec/support/curation_concern/factory_helpers.rb
curate-0.5.2 spec/support/curation_concern/factory_helpers.rb
curate-0.5.1 spec/support/curation_concern/factory_helpers.rb
curate-0.5.0 spec/support/curation_concern/factory_helpers.rb
curate-0.4.2 spec/support/curation_concern/factory_helpers.rb