Replace rspec stub with allow syntax

* The stub syntax is deprecated in rspec 3

---

This is a little more iffy than the other rspec PR, but perhaps it's worth the upgrade

Sorry for the barrage of PRs! A number of things jumped out at me and I figured it's worth the help :smile: