resolve deprecation warnings from rspec3
Merge pull request #131 from spaungam/deprecation

Fix deprecated warning messages after moving to rspec3.