mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Update test/cache_test.rb
This commit is contained in:
parent
f815d3e9f8
commit
7ff2ac64b7
@ -188,7 +188,7 @@ module ActiveModelSerializers
|
||||
assert_equal [{ name: foo }, { name: foo }, { name: foo2 }], collection_json
|
||||
|
||||
bar = 'Bar'
|
||||
author.update_attributes(name: bar)
|
||||
author.update!(name: bar)
|
||||
|
||||
collection_json = render_object_with_cache(author_collection, each_serializer: AuthorSerializerWithCache)
|
||||
assert_equal [{ name: bar }, { name: bar }, { name: foo2 }], collection_json
|
||||
|
||||
Loading…
Reference in New Issue
Block a user