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