mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 07:09:39 +02:00
* 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
15 lines
368 B
Ruby
15 lines
368 B
Ruby
require "test_helper"
|
|
|
|
class AccountTest < ActiveSupport::TestCase
|
|
def setup
|
|
depository = account_depositories(:checking)
|
|
@account = accounts(:checking)
|
|
@account.accountable = depository
|
|
end
|
|
|
|
test "new account should be valid" do
|
|
assert @account.valid?
|
|
assert_not_nil @account.accountable_id
|
|
assert_not_nil @account.accountable
|
|
end
|
|
end
|