Skip to content

Commit

Permalink
Update test/cache_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
cintamani authored Feb 1, 2019
1 parent f815d3e commit 7ff2ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def test_cache_expiration_in_collection_on_update_of_record
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
Expand Down

0 comments on commit 7ff2ac6

Please sign in to comment.