mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 12:34:12 +00:00
Prepare fixture data for account sync tests (#493)
* Rename account balance field for clarity `original_balance` and `original_currency` may infer that these values are "original" to the account. In reality, they represent the "current" balance and currency on the account. * Prepare fixture data for account sync testing * Update to new field * Fix conflicts * Remove local schema change
This commit is contained in:
33
test/fixtures/valuations.yml
vendored
33
test/fixtures/valuations.yml
vendored
@@ -1,11 +1,26 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
# For collectible account that only has valuations (no transactions)
|
||||
collectible_one:
|
||||
value: 550
|
||||
date: <%= 4.days.ago.to_date %>
|
||||
account: collectible
|
||||
|
||||
one:
|
||||
value: 9.99
|
||||
date: 2024-02-15
|
||||
account: dylan_checking
|
||||
collectible_two:
|
||||
value: 700
|
||||
date: <%= 12.days.ago.to_date %>
|
||||
account: collectible
|
||||
|
||||
two:
|
||||
value: 9.99
|
||||
date: 2024-02-15
|
||||
account: richards_savings
|
||||
collectible_three:
|
||||
value: 400
|
||||
date: <%= 30.days.ago.to_date %>
|
||||
account: collectible
|
||||
|
||||
# For checking account that has valuations and transactions
|
||||
savings_one:
|
||||
value: 20500
|
||||
date: <%= 3.days.ago.to_date %>
|
||||
account: savings_with_valuation_overrides
|
||||
|
||||
savings_two:
|
||||
value: 19500
|
||||
date: <%= 12.days.ago.to_date %>
|
||||
account: savings_with_valuation_overrides
|
||||
|
||||
Reference in New Issue
Block a user