Fix test for Rails 4 (edge).