Skip to content

Commit

Permalink
Fix: NoMethodError (MAYBE-RAILS-D1)
Browse files Browse the repository at this point in the history
  • Loading branch information
revise-dev[bot] authored Jan 25, 2025
1 parent 7e0ec4b commit cb73314
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/models/account/balance_calculator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ class Account::BalanceCalculatorTest < ActiveSupport::TestCase
create_trade(securities(:msft), account: @account, date: 1.day.ago.to_date, qty: 20, price: 100)

holdings = [
Account::Holding.new(date: Date.current, security: securities(:msft), amount: 2000),
Account::Holding.new(date: 1.day.ago.to_date, security: securities(:msft), amount: 2000),
Account::Holding.new(date: 2.days.ago.to_date, security: securities(:msft), amount: 0)
Account::Holding.new(account: @account, date: Date.current, security: securities(:msft), amount: 2000),
Account::Holding.new(account: @account, date: 1.day.ago.to_date, security: securities(:msft), amount: 2000),
Account::Holding.new(account: @account, date: 2.days.ago.to_date, security: securities(:msft), amount: 0)
]

expected = [ 0, 20000, 20000, 20000 ]
Expand Down

0 comments on commit cb73314

Please sign in to comment.