Style/PredicateWithKind

This commit is contained in:
Maikel Linke
2026-04-02 13:03:27 +11:00
parent 2601b55a6f
commit 846a59873e

View File

@@ -145,7 +145,7 @@ RSpec.describe "Customers", swagger_doc: "v1.yaml", feature: :api_v1 do
it "adds balance to each customer" do
get "/api/v1/customers", params: { extra_fields: { customer: :balance } }
balances = json_response[:data].map{ |c| c[:attributes][:balance] }
expect(balances.all?{ |b| b.is_a? Numeric }).to eq(true)
expect(balances.all?(Numeric)).to eq(true)
end
end