We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e7247a commit a2502aaCopy full SHA for a2502aa
test/sandbox/test/rendering_test.rb
@@ -1273,4 +1273,12 @@ def test_cache_component
1273
assert_selector(".cache-component__cache-key", text: new_component.view_cache_dependencies)
1274
assert_selector(".cache-component__cache-message", text: "foo baz")
1275
end
1276
+
1277
+ def test_no_cache_compoennt
1278
+ component = NoCacheComponent.new(foo: "foo", bar: "bar")
1279
+ render_inline(component)
1280
1281
+ assert_selector(".cache-component__cache-key", text: component.view_cache_dependencies)
1282
+ assert_selector(".cache-component__cache-message", text: "foo bar")
1283
+ end
1284
0 commit comments