Sha256: 608298be1d864e3a3fcdb86e5ae34e36d26686f38c564aee75b6d633a53b7f00

Contents?: true

Size: 639 Bytes

Versions: 20

Compression:

Stored size: 639 Bytes

Contents

require 'support/structural_metadata_helper'

FactoryGirl.define do

  factory :structures, class: Ddr::Models::Structure do

    factory :simple_structure do
      initialize_with do
        new(simple_structure_document)
      end
    end

    factory :nested_structure do
      initialize_with do
        new(nested_structure_document)
      end
    end

    factory :nested_structure_mptr do
      initialize_with do
        new(nested_structure_mptr_document)
      end
    end

    factory :multiple_struct_maps_structure do
      initialize_with do
        new(multiple_struct_maps_structure_document)
      end
    end

  end

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ddr-models-2.11.0 spec/factories/structure_factories.rb
ddr-models-2.10.2 spec/factories/structure_factories.rb
ddr-models-2.10.1 spec/factories/structure_factories.rb
ddr-models-2.10.0 spec/factories/structure_factories.rb
ddr-models-2.10.0.rc2 spec/factories/structure_factories.rb
ddr-models-2.10.0.rc1 spec/factories/structure_factories.rb
ddr-models-2.9.2 spec/factories/structure_factories.rb
ddr-models-2.9.1 spec/factories/structure_factories.rb
ddr-models-2.9.0 spec/factories/structure_factories.rb
ddr-models-2.9.0.rc1 spec/factories/structure_factories.rb
ddr-models-2.8.0 spec/factories/structure_factories.rb
ddr-models-2.8.0.rc1 spec/factories/structure_factories.rb
ddr-models-2.7.6 spec/factories/structure_factories.rb
ddr-models-2.7.5 spec/factories/structure_factories.rb
ddr-models-2.7.4 spec/factories/structure_factories.rb
ddr-models-2.7.3 spec/factories/structure_factories.rb
ddr-models-2.7.2 spec/factories/structure_factories.rb
ddr-models-2.7.1 spec/factories/structure_factories.rb
ddr-models-2.7.0 spec/factories/structure_factories.rb
ddr-models-2.7.0.rc1 spec/factories/structure_factories.rb