Don't miss a post! Subscribe to my mailing list.
Update: The pull request mentioned below has been merged and
motion-stump clears mocks automatically now, so this
after block is no longer necessary.
This one had me "stumped" for awhile. When using motion-stump mocks, you need to clear them in an...
I just started learning about sed and came across one "gotcha" when using the
-i option in OS X. The
-i option allows you to edit a file in-place. It takes an optional parameter - a string to use as the extension for the backup file. If this parameter...
I prefer Ruby's
Test::Unit over RSpec, but one of the things I like about RSpec is the let method. It allows you to create memoized helper methods in your tests. When I use Test::Unit, I usually mimic this behavior using a private helper method. Today...