Skip to content

Commit 3a185c4

Browse files
committed
Fix rfebase mistakes
1 parent 889d3c2 commit 3a185c4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/sandbox/test/rendering_test.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ def test_render_inline_allocations
1515
ViewComponent::CompileCache.cache.delete(MyComponent)
1616
MyComponent.ensure_compiled
1717

18-
allocations = (Rails.version.to_f >= 8.0) ?
19-
{"3.5.0" => 119, "3.4.2" => 125, "3.3.7" => 138} :
20-
{"3.3.7" => 128, "3.3.0" => 140, "3.2.8" => 126, "3.1.7" => 126, "3.0.7" => 135}
18+
allocations =
19+
if Rails.version.to_f < 8.0
20+
{"3.3.8" => 128, "3.3.0" => 140, "3.2.8" => 126, "3.1.7" => 126, "3.0.7" => 135}
21+
elsif Rails.version.split(".").first(2).map(&:to_i) == [8, 0]
22+
{"3.5.0" => 121, "3.4.3" => 125, "3.3.8" => 137}
23+
else
24+
{"3.4.3" => 123}
25+
end
2126

2227
assert_allocations(**allocations) do
2328
render_inline(MyComponent.new)

0 commit comments

Comments
 (0)