Updated stubbing and use of let in order to comply with deprecation warnings.
Merge pull request #38 from bengler/fix-rspec-deprecations

Updated stubbing and use of let in order to comply with deprecation warnings