unexpected invocation: Finance::BillingStrategy(id: integer, account_id: integer, prepaid: boolean, charging_enabled: boolean, charging_retry_delay: integer, charging_retry_times: integer, created_at: datetime, updated_at: datetime, numbering_period: string, currency: string, tenant_id: integer, type: string).daily_async(#<Finance::BillingStrategy::ActiveRecord_Relation:0x183503a0>)
unsatisfied expectations:
- expected exactly once, not yet invoked: Finance::BillingStrategy(id: integer, account_id: integer, prepaid: boolean, charging_enabled: boolean, charging_retry_delay: integer, charging_retry_times: integer, created_at: datetime, updated_at: datetime, numbering_period: string, currency: string, tenant_id: integer, type: string).daily_async()
satisfied expectations:
- allowed any number of times, not yet invoked: PlanRulesCollection.plan_rules_by_name(any_parameters)
- allowed any number of times, not yet invoked: PlanRulesCollection.plan_rules_by_name(any_parameters)
- allowed any number of times, not yet invoked: #<ApplicationPlan:0x1797ba78>.plan_rule(any_parameters)
- expected at least once, invoked twice: {:enabled => true, :active_merchant_logging => false, :billing_canaries => nil, :active_merchant_mode => :test}.billing_canaries(any_parameters)
app/models/finance/billing_strategy.rb:39:in `daily_canaries'
test/unit/finance/billing_strategy_test.rb:80:in `block in <class:BillingStrategyTest>'