Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 02c2508

Browse files
committed
CI doesn't have string, so we compare the strings
1 parent bc0cf3d commit 02c2508

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/requests/admin/ai_usage_controller_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@
106106
expected_total_spending =
107107
expected_input_spending + expected_cached_input_spending + expected_output_spending
108108

109-
expect(feature["input_spending"]).to eq(expected_input_spending.to_s)
110-
expect(feature["output_spending"]).to eq(expected_output_spending.to_s)
111-
expect(feature["cached_input_spending"]).to eq(expected_cached_input_spending.to_s)
112-
expect(summary["total_spending"]).to eq(expected_total_spending.round(2))
109+
expect(feature["input_spending"].to_s).to eq(expected_input_spending.to_s)
110+
expect(feature["output_spending"].to_s).to eq(expected_output_spending.to_s)
111+
expect(feature["cached_input_spending"].to_s).to eq(expected_cached_input_spending.to_s)
112+
expect(summary["total_spending"].to_s).to eq(expected_total_spending.round(2).to_s)
113113
end
114114

115115
it "handles different period groupings" do

0 commit comments

Comments
 (0)