Skip to content

Commit 7ff2ac6

Browse files
authored
Update test/cache_test.rb
1 parent f815d3e commit 7ff2ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cache_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_cache_expiration_in_collection_on_update_of_record
188188
assert_equal [{ name: foo }, { name: foo }, { name: foo2 }], collection_json
189189

190190
bar = 'Bar'
191-
author.update_attributes(name: bar)
191+
author.update!(name: bar)
192192

193193
collection_json = render_object_with_cache(author_collection, each_serializer: AuthorSerializerWithCache)
194194
assert_equal [{ name: bar }, { name: bar }, { name: foo2 }], collection_json

0 commit comments

Comments
 (0)