Test spies, for rspec WWW: https://github.com/technicalpickles/rspec-spies