test/fetch_test.rb in identity_cache-0.4.1 vs test/fetch_test.rb in identity_cache-0.5.0
- old
+ new
@@ -9,10 +9,10 @@
Item.cache_index :id, :title, :unique => true
@record = Item.new
@record.id = 1
@record.title = 'bob'
- @cached_value = {class: @record.class, attributes: @record.attributes_before_type_cast}
+ @cached_value = { class: @record.class.name, attributes: @record.attributes_before_type_cast }
@blob_key = "#{NAMESPACE}blob:Item:#{cache_hash("created_at:datetime,id:integer,item_id:integer,title:string,updated_at:datetime")}:1"
@index_key = "#{NAMESPACE}attr:Item:id:title:#{cache_hash('bob')}"
end
def test_fetch_with_garbage_input