Fixing deprecation warnings on RSpec 3
Merge pull request #254 from wless1/fix-rspec-3-deprecations

Fixing deprecation warnings on RSpec 3