1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-20 13:49:39 +02:00
Maybe/test/models/account_test.rb

15 lines
431 B
Ruby
Raw Normal View History

2024-02-02 09:05:04 -06:00
require "test_helper"
class AccountTest < ActiveSupport::TestCase
def setup
depository = Account::Depository.create!
@account = Account.create!(family: families(:dylan_family), name: "Explicit Checking", original_balance: 1200, 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
2024-02-02 09:05:04 -06:00
end