Sha256: 8670919a532bfbd4ebd8aee4443465d4de48d8b04bee4a2f75bd97be6acebd4a

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

FactoryBot.define do
  factory :client_price, class: "Comee::Core::ClientPrice" do
    valid_from { Date.current.advance(months: -1) }
    valid_to { Date.current.advance(months: 1) }
    old_price { 100 }
    new_price { 110 }
    future_price { nil }
    future_validity { nil }
    product
    client
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comee_core-0.1.13 spec/factories/comee/core/client_prices.rb
comee_core-0.1.12 spec/factories/comee/core/client_prices.rb
comee_core-0.1.11 spec/factories/comee/core/client_prices.rb
comee_core-0.1.10 spec/factories/comee/core/client_prices.rb