Sha256: beb44b8286832167bd3e86205b1d1acda40430e9c82775815b4ba1167841ede5
Contents?: true
Size: 575 Bytes
Versions: 5
Compression:
Stored size: 575 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) } status { 0 } price { 100 } product client unit discount { 0 } previous_price { nil } trait :past do valid_from { Date.current.advance(months: -2) } valid_to { Date.current.advance(months: -1) } end trait :future do valid_from { Date.current.advance(months: 1) } valid_to { Date.current.advance(months: 2) } end end end
Version data entries
5 entries across 5 versions & 1 rubygems