@@ -1430,7 +1430,7 @@ def test_caching_included_singleton
14301430 }
14311431
14321432 $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
14341434
14351435 get "/api/v9/people/#{ $test_user. id } ?include=preferences"
14361436 assert_jsonapi_response 200
@@ -1477,7 +1477,7 @@ def test_caching_included_singleton
14771477 ]
14781478 }
14791479
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
14811481
14821482 ensure
14831483 JSONAPI . configuration = original_config
@@ -1522,7 +1522,7 @@ def test_caching_singleton_primary
15221522 }
15231523 }
15241524
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
15261526
15271527 $test_user = Person . find ( 1 )
15281528
@@ -1550,7 +1550,7 @@ def test_caching_singleton_primary
15501550 }
15511551 }
15521552
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
15541554
15551555 ensure
15561556 JSONAPI . configuration = original_config
0 commit comments