From 6ecfe99ebe046385a1992342e905eea69e159f51 Mon Sep 17 00:00:00 2001 From: Daria Mayorova Date: Mon, 13 Jan 2025 18:00:37 +0100 Subject: [PATCH] Do not care about order for IDs for billing canaries --- test/unit/finance/billing_strategy_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/finance/billing_strategy_test.rb b/test/unit/finance/billing_strategy_test.rb index d0960c94b3..e5491f82bf 100644 --- a/test/unit/finance/billing_strategy_test.rb +++ b/test/unit/finance/billing_strategy_test.rb @@ -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