Fix specs for Rails 3.0 / 3.1