I like to run my test suite with -w when possible. This commit cleans up the warnings I was encountering by initializing instance variables (or checking if they're defined), avoiding the overshadowing of a local variable in a block, and not assigning an unused local variables.
Fix various warnings.
Looks good! Thank you for this patch, I may start using -w option too :)
If you decide to start using -w, you might be interested in the technique I used w/ VCR to isolate the warnings output to just warnings generated by VCR itself, and to fail the build if VCR generates warnings. I blogged about it. Note that the current version of my capture_warnings,rb file is a bit different from what I had put in the blog post.
Thanks Myron. I'll have a look at your solution.