Skip to content

Commit 88bbc66

Browse files
committed
Relax allocations assertions for Rails 7.1 / Ruby 3.2.9
1 parent fbbec1e commit 88bbc66

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/sandbox/test/rendering_test.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ def test_render_inline_allocations
1616
MyComponent.ensure_compiled
1717

1818
allocations =
19-
if Rails.version.split(".").first(2).map(&:to_i) == [7, 1] && ViewComponent::Base.config.capture_compatibility_patch_enabled
20-
{"3.2.9" => 129}
21-
elsif Rails.version.to_f < 8.0
22-
{"3.3.10" => 126, "3.2.9" => 129, "3.1.7" => 130, "3.0.7" => 131}
19+
if Rails.version.to_f < 8.0
20+
{"3.3.10" => 126, "3.2.9" => 128..129, "3.1.7" => 130, "3.0.7" => 131}
2321
elsif Rails.version.split(".").first(2).map(&:to_i) == [8, 0]
2422
{"3.5.0" => 118, "3.4.7" => 122, "3.3.10" => 134}
2523
else

0 commit comments

Comments
 (0)