Sha256: eb84253b9f6093185e11d8ced85db04f368b70739105167a022f80878dfd87d6
Contents?: true
Size: 424 Bytes
Versions: 4
Compression:
Stored size: 424 Bytes
Contents
FactoryBot.define do factory :entry, class: Borutus::Entry do description { "factory description" } end factory :entry_with_credit_and_debit, class: Borutus::Entry do description { "factory description" } after(:build) do |entry| entry.credit_amounts << FactoryBot.build(:credit_amount, entry: entry) entry.debit_amounts << FactoryBot.build(:debit_amount, entry: entry) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
borutus-1.0.0 | spec/factories/entry_factory.rb |
borutus-0.2.4 | spec/factories/entry_factory.rb |
borutus-0.2.3 | spec/factories/entry_factory.rb |
borutus-0.2.2 | spec/factories/entry_factory.rb |