Work without deprecation warnings on rspec 3