mirror of
https://github.com/we-promise/sure.git
synced 2026-05-25 13:34:58 +00:00
* Display multi-currency holdings correctly * Implement IBKR provider * Fix: Use historical exchange rate for historical prices * Add brokerage exchange rate for trades * Sync historical balances from IBKR * Add logos in activity history * Fix privacy mode blur in account view * Improve IBKR XML Flex report parser errors
21 lines
484 B
Ruby
21 lines
484 B
Ruby
require "test_helper"
|
|
|
|
class IbkrItemTest < ActiveSupport::TestCase
|
|
fixtures :families, :ibkr_items
|
|
|
|
test "syncable excludes items without token" do
|
|
item = IbkrItem.create!(
|
|
family: families(:empty),
|
|
name: "Interactive Brokers",
|
|
query_id: "QUERYNEW",
|
|
token: "TOKENNEW"
|
|
)
|
|
|
|
item.token = nil
|
|
item.save!(validate: false)
|
|
|
|
assert_includes IbkrItem.syncable, ibkr_items(:configured_item)
|
|
refute_includes IbkrItem.syncable, item
|
|
end
|
|
end
|