Little improvements

- Removes deprecations warnings
- Moves specs to Rspec new syntax