Update test/cache_test.rb

This commit is contained in:
cintamani 2019-02-01 17:44:09 +00:00 committed by GitHub
parent f815d3e9f8
commit 7ff2ac64b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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