I needed to stub out a Backbone collection's fetch method and make it return success. I'm using Jasmine BDD for the testing framework and Sinon.js for stubbing the methods. Here's how I did it: (more…)
I just finished quickly putting up a simple, compilation site. This was a business was a group of successful blogs, who had recently moved all their emails addresses to be under one header. As a consequence, people were occasionally hitting the email url. At the time the url just redirected to the flagship site, but the owner wanted the site to be a bit more ...