@@ -80,8 +80,8 @@ def test_prefetch_associations_without_using_cache
8080
8181 def test_prefetch_associations_cached_belongs_to
8282 Item . send ( :cache_belongs_to , :item )
83- @bob . update_attributes !( item_id : @joe . id )
84- @joe . update_attributes !( item_id : @fred . id )
83+ @bob . update !( item_id : @joe . id )
84+ @joe . update !( item_id : @fred . id )
8585 @bob . fetch_item
8686 @joe . fetch_item
8787 items = [ @bob , @joe ] . map ( &:reload )
@@ -101,8 +101,8 @@ def test_prefetch_associations_cached_belongs_to
101101
102102 def test_prefetch_associations_notifies_about_hydration
103103 Item . send ( :cache_belongs_to , :item )
104- @bob . update_attributes !( item_id : @joe . id )
105- @joe . update_attributes !( item_id : @fred . id )
104+ @bob . update !( item_id : @joe . id )
105+ @joe . update !( item_id : @fred . id )
106106 @bob . fetch_item
107107 @joe . fetch_item
108108 items = [ @bob , @joe ] . map ( &:reload )
@@ -119,7 +119,7 @@ def test_prefetch_associations_notifies_about_hydration
119119
120120 def test_prefetch_associations_with_nil_cached_belongs_to
121121 Item . send ( :cache_belongs_to , :item )
122- @bob . update_attributes !( item_id : 1234 )
122+ @bob . update !( item_id : 1234 )
123123 assert_nil ( @bob . fetch_item )
124124
125125 assert_no_queries do
0 commit comments