fixing specs for Rails 4.2