Skip to content

Commit b833ea4

Browse files
committed
fix failing rails 6 specs
1 parent f847289 commit b833ea4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/sandbox/test/rendering_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,8 @@ def test_render_anonymous_component_without_template
12621262
end
12631263

12641264
def test_cache_component
1265+
return if Rails.version < "7.0"
1266+
12651267
component = CacheComponent.new(foo: "foo", bar: "bar")
12661268
render_inline(component)
12671269

@@ -1280,6 +1282,8 @@ def test_cache_component
12801282
end
12811283

12821284
def test_no_cache_compoennt
1285+
return if Rails.version < "7.0"
1286+
12831287
component = NoCacheComponent.new(foo: "foo", bar: "bar")
12841288
render_inline(component)
12851289

0 commit comments

Comments
 (0)