Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always include to_one linkage #1218

Merged
merged 15 commits into from
Feb 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test caching for show_related_resource requests
  • Loading branch information
lgebhardt committed Feb 8, 2019
commit 991855623571592fddd48338e9196c02f36e5270
3 changes: 1 addition & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,7 @@ def assert_cacheable_get(action, *args)
end

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