fix broken tests on Rails 3.2.13 with Ruby 1.8 (#12399, #12375)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11650 e93f8b46-1217-0410-a6f0-8f06a7374b81