This is a ruby on rails demo of how Mock objects and Stub tests work using RSpec.