Fix an Rspec error seen on Ruby 1.9.3+.