Fix rspec deprecation warning
Bump version to 0.3.1