Skip to content

Commit

Permalink
Do not care about order for IDs for billing canaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova committed Jan 13, 2025
1 parent 5de6d95 commit 6ecfe99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/finance/billing_strategy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def setup
canaries = FactoryBot.create_list(:provider_with_billing, 4).map(&:id)
ThreeScale.config.payments.expects(:billing_canaries).at_least_once.returns(canaries)

Finance::BillingStrategy.expects(:daily_async).with { |scope| assert_equal canaries, scope.pluck(:account_id) }.returns(true)
Finance::BillingStrategy.expects(:daily_async).with { |scope| assert_same_elements canaries, scope.pluck(:account_id) }.returns(true)
assert Finance::BillingStrategy.daily_canaries
end

Expand Down

0 comments on commit 6ecfe99

Please sign in to comment.