Sha256: b8f1f0c92fb903df14423553713cffec02fd6d20e0819d3dc107ac0f31cf5bda

Contents?: true

Size: 643 Bytes

Versions: 3

Compression:

Stored size: 643 Bytes

Contents

module Tim
  FactoryGirl.define do
    factory :image_version, :class => Tim::ImageVersion do
    end

    factory :image_version_with_base_image, :parent => :image_version do
      association :base_image, :factory => :base_image
    end

    factory :image_version_with_full_tree, :parent => :image_version do
      association :base_image, :factory => :base_image_with_template
    end

    factory :image_version_with_target_images, :parent => :image_version_with_full_tree do
      after(:create) do |image_version, evaluator|
        FactoryGirl.create_list(:target_image, 2, :image_version => image_version)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tim-0.1.2 spec/factories/tim/image_version.rb
tim-0.1.1 spec/factories/tim/image_version.rb
tim-0.0.1 spec/factories/tim/image_version.rb