Fixed mocha deprecation warnings
Merge pull request #1 from Element84/fix_mocha_deprecation_warnings

The RSpec tests issue mocha deprecation warnings when run.