Fixed broken test in Rails 3.