Sha256: cb3dacc1ac9214699ddddb6a810cf1419e08b76e1beb5743b87db86e21596032

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

FactoryBot.define do
  factory :auction, class: Spree::Auction do
    title "My First Auction"
    description "My First Description"
    starting_price 25.00
    bid_increment 1.00
    starting_datetime Time.now
    planned_end_datetime Time.now + 1.day

    product
    association :creator, factory: :user
  end

  factory :bid, class: Spree::Bid do
    amount 26.00
    auction
    association :bidder, factory: :user
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_auction-0.0.6 lib/solidus_auction/factories.rb
solidus_auction-0.0.5 lib/solidus_auction/factories.rb
solidus_auction-0.0.4 lib/solidus_auction/factories.rb
solidus_auction-0.0.3 lib/solidus_auction/factories.rb
solidus_auction-0.0.1 lib/solidus_auction/factories.rb