Fix specs on Rails 4.1