C & C++

Comparing googlemock to Mocha

Compares unit testing with mock objects in googlemock to RSpec/Mocha, highlighting the differences for someone used to higher-level languages like Ruby.
Web Apps

Mocking Objects with Sinon JS

When Foo has the functions of our ClassToTest, Sinon is happy. When we create a Foo, the ClassToTest initialize does not run, which makes our tests happy.