Fix all deprecations related to test/models/post_test.rb.