Sha256: c4c76d796f20f76045623c7bcaa957672dca3e97dd0ba74768b095457556d939

Contents?: true

Size: 578 Bytes

Versions: 17

Compression:

Stored size: 578 Bytes

Contents

FactoryBot.define do
  factory :project, class: Patch::Project do
    sequence(:id) { |n| n }
    association(:technology_type)
    sdgs { build_list(:sdg, 1) }

    production { false }
    name { "New Project" }
    description { "New Descirption" }
    type { "biomass" }
    country { "DK" }
    developer { "Danish Developer" }
    photos { [] }
    average_price_per_tonne_cents_usd { 120 }
    remaining_mass_g { 1_000 }
    standard { 'european_biochar_certificate' }
    state { 'CO' }
    latitude { 45.0 }
    longitude { 45.0 }
    mechanism { 'removal' }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
patch_ruby-1.24.2 spec/factories/projects.rb
patch_ruby-1.24.1 spec/factories/projects.rb
patch_ruby-1.24.0 spec/factories/projects.rb
patch_ruby-1.23.0 spec/factories/projects.rb
patch_ruby-1.22.0 spec/factories/projects.rb
patch_ruby-1.21.0 spec/factories/projects.rb
patch_ruby-1.20.0 spec/factories/projects.rb
patch_ruby-1.19.0 spec/factories/projects.rb
patch_ruby-1.18.0 spec/factories/projects.rb
patch_ruby-1.17.1 spec/factories/projects.rb
patch_ruby-1.17.0 spec/factories/projects.rb
patch_ruby-1.16.1 spec/factories/projects.rb
patch_ruby-1.16.0 spec/factories/projects.rb
patch_ruby-1.15.2 spec/factories/projects.rb
patch_ruby-1.15.1 spec/factories/projects.rb
patch_ruby-1.15.0 spec/factories/projects.rb
patch_ruby-1.14.0 spec/factories/projects.rb