@@ -1430,7 +1430,7 @@ def test_caching_included_singleton
1430
1430
}
1431
1431
1432
1432
$test_user = Person . find ( 1 )
1433
- assert_equal 2 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@key_access ) . length
1433
+ assert_equal 2 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@data ) . length
1434
1434
1435
1435
get "/api/v9/people/#{ $test_user. id } ?include=preferences"
1436
1436
assert_jsonapi_response 200
@@ -1477,7 +1477,7 @@ def test_caching_included_singleton
1477
1477
]
1478
1478
}
1479
1479
1480
- assert_equal 4 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@key_access ) . length
1480
+ assert_equal 4 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@data ) . length
1481
1481
1482
1482
ensure
1483
1483
JSONAPI . configuration = original_config
@@ -1522,7 +1522,7 @@ def test_caching_singleton_primary
1522
1522
}
1523
1523
}
1524
1524
1525
- assert_equal 1 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@key_access ) . length
1525
+ assert_equal 1 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@data ) . length
1526
1526
1527
1527
$test_user = Person . find ( 1 )
1528
1528
@@ -1550,7 +1550,7 @@ def test_caching_singleton_primary
1550
1550
}
1551
1551
}
1552
1552
1553
- assert_equal 2 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@key_access ) . length
1553
+ assert_equal 2 , JSONAPI . configuration . resource_cache . instance_variable_get ( :@data ) . length
1554
1554
1555
1555
ensure
1556
1556
JSONAPI . configuration = original_config
0 commit comments