Fix Rails 4 test breakage from previous commit.