Fix specs for Rails 3.0
Fix specs for Rails 4.1