Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'mocha/central' module Mocha module SetupAndTeardown def setup_stubs $stubba = Mocha::Central.new end def verify_stubs $stubba.verify_all { yield if block_given? } if $stubba end def teardown_stubs if $stubba then $stubba.unstub_all $stubba = nil end end end end
This paste will be private.
From the Design Piracy series on my blog: