Skip to content

Commit 9918556

Browse files
committed
Test caching for show_related_resource requests
1 parent 14b1a1e commit 9918556

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_helper.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,7 @@ def assert_cacheable_get(action, *args)
592592
end
593593

594594
if mode == :all
595-
# TODO Should also be caching :show_related_resource (non-plural) action
596-
if [:index, :show, :show_related_resources].include?(action)
595+
if [:index, :show, :show_related_resource, :show_related_resources].include?(action)
597596
if ar_resource_klass && response.status == 200 && json_response["data"].try(:size).try(:>, 0)
598597
assert_operator(
599598
cache_activity[:warmup][:total][:misses],

0 commit comments

Comments
 (0)